summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriele Santomaggio <G.santomaggio@gmail.com>2016-07-19 14:44:57 +0200
committerGitHub <noreply@github.com>2016-07-19 14:44:57 +0200
commita1b6e244a122c4ccfa8d8e16ccd24ce1fd3109a2 (patch)
treede98dda22eddfc6c0006486d4ec7091fd58a0a64
parentc9641a8a5093cb03b8fe9a0d5bfc65f430407fff (diff)
parent307faf05e8531ac8ea14231fac2d23819ddf12e6 (diff)
downloaderlang-sd_notify-a1b6e244a122c4ccfa8d8e16ccd24ce1fd3109a2.tar.gz
Merge pull request #13 from systemd/erlang-sd_notify-docker_19
docker for centos 19
-rw-r--r--README.md19
-rw-r--r--docker/centos_19/Dockerfile22
-rw-r--r--packaging/deb/Makefile2
-rw-r--r--packaging/deb/debian/changelog7
4 files changed, 36 insertions, 14 deletions
diff --git a/README.md b/README.md
index 1310de6..05d54e0 100644
--- a/README.md
+++ b/README.md
@@ -12,16 +12,16 @@ On Fedora/CentOS
```bash
extract the tar.gz
- mkdir -p /usr/lib64/erlang/lib/sd_notify-0.10/priv/
- mkdir -p /usr/lib64/erlang/lib/sd_notify-0.10/ebin/
- cp priv/* /usr/lib64/erlang/lib/sd_notify-0.10/priv/
- cp ebin/* /usr/lib64/erlang/lib/sd_notify-0.10/ebin/
+ mkdir -p /usr/lib64/erlang/lib/sd_notify-0.11/priv/
+ mkdir -p /usr/lib64/erlang/lib/sd_notify-0.11/ebin/
+ cp priv/* /usr/lib64/erlang/lib/sd_notify-0.11/priv/
+ cp ebin/* /usr/lib64/erlang/lib/sd_notify-0.11/ebin/
```
On Debian/Ubuntu
```bash
- dpkg -i erlang-sd-notify_0.10-1_amd64.deb
+ dpkg -i erlang-sd-notify_0.11-1_amd64.deb
```
Build from source using Docker
@@ -30,22 +30,22 @@ Build from source using Docker
On Ubuntu
```bash
- docker build -t build_ubuntu docker/ubuntu_{version}/
+ docker build -t build_ubuntu_{version} docker/ubuntu_{version}/
docker run -v {sd_notify_dir}:/home/sd/ build_ubuntu_{version} /bin/sh -c "cd /home/sd/; make deb"
```
on Centos
```bash
- docker build -t build_centos docker/centos_{version}/
- docker run -v {sd_notify_dir}:/sd/ build_centos_{version} /bin/sh -c "cd /sd/; make all"
+ docker build -t build_centos_{version} docker/centos_{version}/
+ docker run -v {sd_notify_dir}:/home/sd/ build_centos_{version} /bin/sh -c "cd /home/sd/; make all"
```
Example
```bash
docker build -t build_centos docker/ubuntu_19/
- docker run -v /home/gabriele/erlang-sd_notify:/home/sd/ build_ubunut_19 /bin/sh -c "cd /home/sd/; make all"
+ docker run -v /home/gabriele/erlang-sd_notify:/home/sd/ build_ubuntu_19 /bin/sh -c "cd /home/sd/; make all"
```
Download Binaries
@@ -63,4 +63,3 @@ Quick example:
1> sd_notify:sd_notify(0,"READY=1").
0
```
-
diff --git a/docker/centos_19/Dockerfile b/docker/centos_19/Dockerfile
new file mode 100644
index 0000000..bb07d21
--- /dev/null
+++ b/docker/centos_19/Dockerfile
@@ -0,0 +1,22 @@
+FROM centos
+
+RUN yum -y update
+
+RUN yum install -y \
+ gcc \
+ systemd-devel \
+ make \
+ git \
+ wget \
+ which
+
+
+
+
+RUN wget https://github.com/rabbitmq/erlang-rpm/releases/download/v1.4.0/erlang-19.0-1.el7.centos.x86_64.rpm
+
+RUN rpm -i erlang-19.0-1.el7.centos.x86_64.rpm
+
+RUN wget https://github.com/rebar/rebar/wiki/rebar && chmod +x rebar
+
+
diff --git a/packaging/deb/Makefile b/packaging/deb/Makefile
index dacb0bd..a04d30b 100644
--- a/packaging/deb/Makefile
+++ b/packaging/deb/Makefile
@@ -1,4 +1,4 @@
-VERSION=0.10
+VERSION=0.11
# Directory names
DEB_BUILD_DIR=deb-build
diff --git a/packaging/deb/debian/changelog b/packaging/deb/debian/changelog
index 2cd14f2..19e6a83 100644
--- a/packaging/deb/debian/changelog
+++ b/packaging/deb/debian/changelog
@@ -1,5 +1,6 @@
-erlang-sd-notify (0.10-1) UNRELEASED; urgency=medium
+erlang-sd-notify (0.11-1) UNRELEASED; urgency=medium
- * Initial release.
+ * Update for 19.0
+
+ -- Gabriele Santomaggio <g.santomaggio@gmail.com> Tue, 19 Jul 2016 14:12:18 +0000
- -- Gabriele Santomaggio <g.santomaggio@gmail.com> Sun, 26 Jun 2016 14:43:18 +0000