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
|
||||
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 install -y --no-install-recommends \
|
||||
libaio1=0.3.110-3 && \
|
||||
apt-get -qq -o=Dpkg::Use-Pty=0 install -y libaio1 && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
USER artemis
|
||||
|
@ -67,4 +66,4 @@ VOLUME ["/var/lib/artemis-instance"]
|
|||
WORKDIR /var/lib/artemis-instance
|
||||
|
||||
ENTRYPOINT ["/docker-run.sh"]
|
||||
CMD ["run"]
|
||||
CMD ["run"]
|
|
@ -51,6 +51,7 @@ then
|
|||
rm -rf $target/docker
|
||||
fi
|
||||
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"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# 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
|
||||
|
||||
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.
|
||||
|
||||
## For Ubuntu:
|
||||
## For Debian:
|
||||
|
||||
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
|
||||
|
@ -28,7 +28,7 @@ $ docker build -f ./docker/Dockerfile-centos -t artemis-centos .
|
|||
```
|
||||
|
||||
**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:
|
||||
|
||||
|
|
Loading…
Reference in New Issue