Commit 87e216fd by U+039b

Move dynamic port into configuration object

parent d2a9d5a1
Pipeline #100 passed with stage
in 2 minutes 57 seconds
......@@ -5,22 +5,22 @@ This software is a very simple **P**latform **L**ife-cycle **M**anager meant to
* each micro service can register itself to take part of a cluster
* dynamically generate and update configuration
## Debian and Ubuntu packages [![build status](http://gitlab.s1.0x39b.fr/lambda/esther-plm/badges/1.10/build.svg)](http://gitlab.s1.0x39b.fr/lambda/esther-plm/commits/1.10)
A packaged version for Debian and Ubuntu is available in the [artifacts folder](https://where.esther.codes/lambda/esther-plm/-/jobs/60/artifacts/browse/pkg/).
## Debian and Ubuntu packages [![build status](http://gitlab.s1.0x39b.fr/lambda/esther-plm/badges/1.11/build.svg)](http://gitlab.s1.0x39b.fr/lambda/esther-plm/commits/1.11)
A packaged version for Debian and Ubuntu is available in the [artifacts folder](https://where.esther.codes/lambda/esther-plm/-/jobs/61/artifacts/browse/pkg/).
Alternatively, click on one of the following links:
* [<img src="https://www.debian.org/logos/openlogo-nd-25.png" height="24px"/> <img src="https://assets.ubuntu.com/v1/1be42010-cof_orange_hex.jpg" width="24px" height="24px"/> `esther-plm_1.10_linux_386.deb`](https://where.esther.codes/lambda/esther-plm/-/jobs/60/artifacts/raw/pkg/esther-plm_1.10_linux_386.deb)
* [<img src="https://www.debian.org/logos/openlogo-nd-25.png" height="24px"/> <img src="https://assets.ubuntu.com/v1/1be42010-cof_orange_hex.jpg" width="24px" height="24px"/> `esther-plm_1.11_linux_386.deb`](https://where.esther.codes/lambda/esther-plm/-/jobs/61/artifacts/raw/pkg/esther-plm_1.11_linux_386.deb)
```bash
wget https://where.esther.codes/lambda/esther-plm/-/jobs/60/artifacts/raw/pkg/esther-plm_1.10_linux_386.deb
sudo dpkg -i esther-plm_1.10_linux_386.deb
wget https://where.esther.codes/lambda/esther-plm/-/jobs/61/artifacts/raw/pkg/esther-plm_1.11_linux_386.deb
sudo dpkg -i esther-plm_1.11_linux_386.deb
```
* [<img src="https://www.debian.org/logos/openlogo-nd-25.png" height="24px"/> <img src="https://assets.ubuntu.com/v1/1be42010-cof_orange_hex.jpg" width="24px" height="24px"/> `esther-plm_1.10_linux_amd64.deb`](https://where.esther.codes/lambda/esther-plm/-/jobs/60/artifacts/file/pkg/esther-plm_1.10_linux_amd64.deb)
* [<img src="https://www.debian.org/logos/openlogo-nd-25.png" height="24px"/> <img src="https://assets.ubuntu.com/v1/1be42010-cof_orange_hex.jpg" width="24px" height="24px"/> `esther-plm_1.11_linux_amd64.deb`](https://where.esther.codes/lambda/esther-plm/-/jobs/61/artifacts/raw/pkg/esther-plm_1.11_linux_amd64.deb)
```bash
wget https://where.esther.codes/lambda/esther-plm/-/jobs/60/artifacts/raw/pkg/esther-plm_1.10_linux_amd64.deb
sudo dpkg -i esther-plm_1.10_linux_amd64.deb
wget https://where.esther.codes/lambda/esther-plm/-/jobs/61/artifacts/raw/pkg/esther-plm_1.11_linux_amd64.deb
sudo dpkg -i esther-plm_1.11_linux_amd64.deb
```
These packages are not compliant with Debian package policy. For more information, run `lintian` on `.deb`.
......@@ -34,8 +34,8 @@ A `man` page is available, simply type:
man esther-plm
```
## Binary distribution [![build status](http://gitlab.s1.0x39b.fr/lambda/esther-plm/badges/1.10/build.svg)](http://gitlab.s1.0x39b.fr/lambda/esther-plm/commits/1.10)
A compiled version is available in the [artifacts folder](https://where.esther.codes/lambda/esther-plm/-/jobs/60/artifacts/browse):
## Binary distribution [![build status](http://gitlab.s1.0x39b.fr/lambda/esther-plm/badges/1.11/build.svg)](http://gitlab.s1.0x39b.fr/lambda/esther-plm/commits/1.11)
A compiled version is available in the [artifacts folder](https://where.esther.codes/lambda/esther-plm/-/jobs/61/artifacts/browse/pkg/):
* `darwin 386`
* `darwin amd64`
......
......@@ -6,20 +6,20 @@ This software is a very simple **P**latform **L**ife-cycle **M**anager meant to
* dynamically generate and update configuration
## Debian and Ubuntu packages [![build status](http://gitlab.s1.0x39b.fr/lambda/esther-plm/badges/<%latest.tag%>/build.svg)](http://gitlab.s1.0x39b.fr/lambda/esther-plm/commits/<%latest.tag%>)
A packaged version for Debian and Ubuntu is available in the [artifacts folder](https://gitlab.s1.0x39b.fr/lambda/esther-plm/builds/<%latest.build%>/artifacts/browse/pkg/).
A packaged version for Debian and Ubuntu is available in the [artifacts folder](https://where.esther.codes/lambda/esther-plm/-/jobs/<%latest.build%>/artifacts/browse/pkg/).
Alternatively, click on one of the following links:
* [<img src="https://www.debian.org/logos/openlogo-nd-25.png" height="24px"/> <img src="https://assets.ubuntu.com/v1/1be42010-cof_orange_hex.jpg" height="24px"/> `esther-plm_<%latest.tag%>_linux_386.deb`](https://gitlab.s1.0x39b.fr/lambda/esther-plm/builds/<%latest.build%>/artifacts/file/pkg/esther-plm_<%latest.tag%>_linux_386.deb)
* [<img src="https://www.debian.org/logos/openlogo-nd-25.png" height="24px"/> <img src="https://assets.ubuntu.com/v1/1be42010-cof_orange_hex.jpg" width="24px" height="24px"/> `esther-plm_<%latest.tag%>_linux_386.deb`](https://where.esther.codes/lambda/esther-plm/-/jobs/<%latest.build%>/artifacts/raw/pkg/esther-plm_<%latest.tag%>_linux_386.deb)
```bash
wget https://gitlab.s1.0x39b.fr/lambda/esther-plm/builds/<%latest.build%>/artifacts/file/pkg/esther-plm_<%latest.tag%>_linux_386.deb
wget https://where.esther.codes/lambda/esther-plm/-/jobs/<%latest.build%>/artifacts/raw/pkg/esther-plm_<%latest.tag%>_linux_386.deb
sudo dpkg -i esther-plm_<%latest.tag%>_linux_386.deb
```
* [<img src="https://www.debian.org/logos/openlogo-nd-25.png" height="24px"/> <img src="https://assets.ubuntu.com/v1/1be42010-cof_orange_hex.jpg" height="24px"/> `esther-plm_<%latest.tag%>_linux_amd64.deb`](https://gitlab.s1.0x39b.fr/lambda/esther-plm/builds/<%latest.build%>/artifacts/file/pkg/esther-plm_<%latest.tag%>_linux_amd64.deb)
* [<img src="https://www.debian.org/logos/openlogo-nd-25.png" height="24px"/> <img src="https://assets.ubuntu.com/v1/1be42010-cof_orange_hex.jpg" width="24px" height="24px"/> `esther-plm_<%latest.tag%>_linux_amd64.deb`](https://where.esther.codes/lambda/esther-plm/-/jobs/<%latest.build%>/artifacts/raw/pkg/esther-plm_<%latest.tag%>_linux_amd64.deb)
```bash
wget https://gitlab.s1.0x39b.fr/lambda/esther-plm/builds/<%latest.build%>/artifacts/file/pkg/esther-plm_<%latest.tag%>_linux_amd64.deb
wget https://where.esther.codes/lambda/esther-plm/-/jobs/<%latest.build%>/artifacts/raw/pkg/esther-plm_<%latest.tag%>_linux_amd64.deb
sudo dpkg -i esther-plm_<%latest.tag%>_linux_amd64.deb
```
......@@ -35,7 +35,7 @@ man esther-plm
```
## Binary distribution [![build status](http://gitlab.s1.0x39b.fr/lambda/esther-plm/badges/<%latest.tag%>/build.svg)](http://gitlab.s1.0x39b.fr/lambda/esther-plm/commits/<%latest.tag%>)
A compiled version is available in the [artifacts folder](https://gitlab.s1.0x39b.fr/lambda/esther-plm/builds/<%latest.build%>/artifacts/browse/pkg/):
A compiled version is available in the [artifacts folder](https://where.esther.codes/lambda/esther-plm/-/jobs/<%latest.build%>/artifacts/browse/pkg/):
* `darwin 386`
* `darwin amd64`
......
{
"latest": {
"tag": "1.10",
"build": "58"
"tag": "1.11",
"build": "61"
}
}
......@@ -139,6 +139,7 @@ func (pc *PlatformController) HttpRegisterNewInstance(w http.ResponseWriter, r *
pc.PlatformMutex.Lock()
err, port := service.GetFreePort()
if err != nil {
fmt.Println("ahahahah")
pc.PlatformMutex.Unlock()
handleRestError(err, w)
return
......@@ -155,7 +156,6 @@ func (pc *PlatformController) HttpRegisterNewInstance(w http.ResponseWriter, r *
"configuration": service.Configuration,
}
payload, err := json.Marshal(a)
if !handleRestError(err, w) {
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment