Skip to content

Commit a1b6e24

Browse files
authored
Merge pull request #13 from systemd/erlang-sd_notify-docker_19
docker for centos 19
2 parents c9641a8 + 307faf0 commit a1b6e24

File tree

4 files changed

+36
-14
lines changed

4 files changed

+36
-14
lines changed

README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ On Fedora/CentOS
1212

1313
```bash
1414
extract the tar.gz
15-
mkdir -p /usr/lib64/erlang/lib/sd_notify-0.10/priv/
16-
mkdir -p /usr/lib64/erlang/lib/sd_notify-0.10/ebin/
17-
cp priv/* /usr/lib64/erlang/lib/sd_notify-0.10/priv/
18-
cp ebin/* /usr/lib64/erlang/lib/sd_notify-0.10/ebin/
15+
mkdir -p /usr/lib64/erlang/lib/sd_notify-0.11/priv/
16+
mkdir -p /usr/lib64/erlang/lib/sd_notify-0.11/ebin/
17+
cp priv/* /usr/lib64/erlang/lib/sd_notify-0.11/priv/
18+
cp ebin/* /usr/lib64/erlang/lib/sd_notify-0.11/ebin/
1919
```
2020

2121
On Debian/Ubuntu
2222

2323
```bash
24-
dpkg -i erlang-sd-notify_0.10-1_amd64.deb
24+
dpkg -i erlang-sd-notify_0.11-1_amd64.deb
2525
```
2626

2727
Build from source using Docker
@@ -30,22 +30,22 @@ Build from source using Docker
3030
On Ubuntu
3131

3232
```bash
33-
docker build -t build_ubuntu docker/ubuntu_{version}/
33+
docker build -t build_ubuntu_{version} docker/ubuntu_{version}/
3434
docker run -v {sd_notify_dir}:/home/sd/ build_ubuntu_{version} /bin/sh -c "cd /home/sd/; make deb"
3535
```
3636

3737
on Centos
3838

3939
```bash
40-
docker build -t build_centos docker/centos_{version}/
41-
docker run -v {sd_notify_dir}:/sd/ build_centos_{version} /bin/sh -c "cd /sd/; make all"
40+
docker build -t build_centos_{version} docker/centos_{version}/
41+
docker run -v {sd_notify_dir}:/home/sd/ build_centos_{version} /bin/sh -c "cd /home/sd/; make all"
4242
```
4343

4444
Example
4545

4646
```bash
4747
docker build -t build_centos docker/ubuntu_19/
48-
docker run -v /home/gabriele/erlang-sd_notify:/home/sd/ build_ubunut_19 /bin/sh -c "cd /home/sd/; make all"
48+
docker run -v /home/gabriele/erlang-sd_notify:/home/sd/ build_ubuntu_19 /bin/sh -c "cd /home/sd/; make all"
4949
```
5050

5151
Download Binaries
@@ -63,4 +63,3 @@ Quick example:
6363
1> sd_notify:sd_notify(0,"READY=1").
6464
0
6565
```
66-

docker/centos_19/Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
FROM centos
2+
3+
RUN yum -y update
4+
5+
RUN yum install -y \
6+
gcc \
7+
systemd-devel \
8+
make \
9+
git \
10+
wget \
11+
which
12+
13+
14+
15+
16+
RUN wget https://github.com/rabbitmq/erlang-rpm/releases/download/v1.4.0/erlang-19.0-1.el7.centos.x86_64.rpm
17+
18+
RUN rpm -i erlang-19.0-1.el7.centos.x86_64.rpm
19+
20+
RUN wget https://github.com/rebar/rebar/wiki/rebar && chmod +x rebar
21+
22+

packaging/deb/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION=0.10
1+
VERSION=0.11
22

33
# Directory names
44
DEB_BUILD_DIR=deb-build

packaging/deb/debian/changelog

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
erlang-sd-notify (0.10-1) UNRELEASED; urgency=medium
1+
erlang-sd-notify (0.11-1) UNRELEASED; urgency=medium
22

3-
* Initial release.
3+
* Update for 19.0
4+
5+
-- Gabriele Santomaggio <g.santomaggio@gmail.com> Tue, 19 Jul 2016 14:12:18 +0000
46

5-
-- Gabriele Santomaggio <g.santomaggio@gmail.com> Sun, 26 Jun 2016 14:43:18 +0000

0 commit comments

Comments
 (0)