ARTEMIS-2773 Dockerfile Improvements
Rename Dockerfile-ubuntu to Dockerfile-debian fix libaio1 dependency issue updated scripts and readme
This commit is contained in:
parent
b91a1c4d32
commit
31a401223b
|
@ -31,8 +31,7 @@ ENV CREATE_ARGUMENTS --user ${ARTEMIS_USER} --password ${ARTEMIS_PASSWORD} --sil
|
||||||
# add user and group for artemis
|
# add user and group for artemis
|
||||||
RUN groupadd -g 1000 -r artemis && useradd -r -u 1000 -g artemis artemis \
|
RUN groupadd -g 1000 -r artemis && useradd -r -u 1000 -g artemis artemis \
|
||||||
&& apt-get -qq -o=Dpkg::Use-Pty=0 update && \
|
&& apt-get -qq -o=Dpkg::Use-Pty=0 update && \
|
||||||
apt-get -qq -o=Dpkg::Use-Pty=0 install -y --no-install-recommends \
|
apt-get -qq -o=Dpkg::Use-Pty=0 install -y libaio1 && \
|
||||||
libaio1=0.3.110-3 && \
|
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
USER artemis
|
USER artemis
|
|
@ -51,6 +51,7 @@ then
|
||||||
rm -rf $target/docker
|
rm -rf $target/docker
|
||||||
fi
|
fi
|
||||||
mkdir $target/docker
|
mkdir $target/docker
|
||||||
cp ./{Dockerfile-centos,Dockerfile-ubuntu,docker-run.sh} $target/docker
|
cp ./Dockerfile-* $target/docker
|
||||||
|
cp ./docker-run.sh $target/docker
|
||||||
|
|
||||||
echo "Docker file support files at : $target/docker"
|
echo "Docker file support files at : $target/docker"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Docker Image Example
|
# Docker Image Example
|
||||||
|
|
||||||
This is an example on how you could create your own Docker Image For Apache ActiveMQ Artemis based on CentOS or Ubuntu.
|
This is an example on how you could create your own Docker Image For Apache ActiveMQ Artemis based on CentOS or Debian.
|
||||||
# Preparing
|
# Preparing
|
||||||
|
|
||||||
Use the script ./prepare-docker.sh as it will copy the docker files under the binary distribution.
|
Use the script ./prepare-docker.sh as it will copy the docker files under the binary distribution.
|
||||||
|
@ -13,11 +13,11 @@ $ ./prepare-docker.sh $ARTEMIS_HOME
|
||||||
|
|
||||||
Go to `$ARTEMIS_HOME` where you prepared the binary with Docker files.
|
Go to `$ARTEMIS_HOME` where you prepared the binary with Docker files.
|
||||||
|
|
||||||
## For Ubuntu:
|
## For Debian:
|
||||||
|
|
||||||
From within the `$ARTEMIS_HOME` folder:
|
From within the `$ARTEMIS_HOME` folder:
|
||||||
```
|
```
|
||||||
$ docker build -f ./docker/Dockerfile-ubuntu -t artemis-ubuntu .
|
$ docker build -f ./docker/Dockerfile-debian -t artemis-debian .
|
||||||
```
|
```
|
||||||
|
|
||||||
## For CentOS
|
## For CentOS
|
||||||
|
@ -28,7 +28,7 @@ $ docker build -f ./docker/Dockerfile-centos -t artemis-centos .
|
||||||
```
|
```
|
||||||
|
|
||||||
**Note:**
|
**Note:**
|
||||||
`-t artemis-ubuntu`,`-t artemis-centos` are just tag names for the purpose of this guide
|
`-t artemis-debian`,`-t artemis-centos` are just tag names for the purpose of this guide
|
||||||
|
|
||||||
# Variables:
|
# Variables:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue