build: fix entrypoint for rookd and toolbox
This commit is contained in:
1 parent
ef4ea21913
commit
fa7460fc54
5 files changed
+15
-14
No files matched your search
+2
-1
@@ -47,8 +47,9 @@ function start_rsync_container() {
|
||||
-e MKDIRS="/volume/go/src/${source_repo}" \
|
||||
-p ${rsync_port}:873 \
|
||||
-v ${container_volume}:/volume \
|
||||
--entrypoint "/tini" \
|
||||
${container_image} \
|
||||
/build/rsyncd.sh
|
||||
-- /build/rsyncd.sh
|
||||
}
|
||||
|
||||
function wait_for_rsync() {
|
||||
|
||||
@@ -25,17 +25,15 @@ if [ ! -z $DOCKER_HOST ]; then
|
||||
fi
|
||||
|
||||
# build the the container if we've not done so already
|
||||
if [[ -z "$(docker images -q ${container_image})" ]]; then
|
||||
echo ==== building the cross container \(this could take minutes the first time\)
|
||||
make_cmd="make --no-print-directory -C ${scriptdir}/../images cross.amd64 PULL=0"
|
||||
make_output=$($make_cmd 2>&1) || {
|
||||
cat <<EOF >&2
|
||||
echo ==== building the cross container \(this could take minutes the first time\)
|
||||
make_cmd="make --no-print-directory -C ${scriptdir}/../images cross.amd64 PULL=0"
|
||||
make_output=$($make_cmd 2>&1) || {
|
||||
cat <<EOF >&2
|
||||
=== cross build image failed for ${container_image}
|
||||
${make_output}
|
||||
EOF
|
||||
exit 1
|
||||
exit 1
|
||||
}
|
||||
fi
|
||||
|
||||
# run the container with the same uid and gid of the user to avoid
|
||||
# permissions issues when sharing volumes with the host
|
||||
|
||||
@@ -40,4 +40,6 @@ RUN ACBUILD_VERSION=0.4.0 && \
|
||||
rm -f docker2aci-v${DOCKER2ACI_VERSION}.tar.gz
|
||||
|
||||
COPY run.sh rsyncd.sh /build/
|
||||
CMD [ "/build/run.sh" ]
|
||||
|
||||
ENTRYPOINT [ "/tini", "--", "/build/run.sh" ]
|
||||
CMD ["/bin/bash"]
|
||||
@@ -16,4 +16,5 @@ FROM BASEIMAGE
|
||||
|
||||
ADD rookd /usr/local/bin/
|
||||
|
||||
CMD ["/usr/local/bin/rookd"]
|
||||
ENTRYPOINT ["/tini", "--", "/usr/local/bin/rookd"]
|
||||
CMD [""]
|
||||
@@ -14,8 +14,7 @@
|
||||
|
||||
FROM BASEIMAGE
|
||||
|
||||
COPY rook /usr/local/bin
|
||||
COPY rook toolbox.sh /usr/local/bin/
|
||||
|
||||
COPY toolbox.sh /toolbox/
|
||||
|
||||
CMD [ "/toolbox/toolbox.sh" ]
|
||||
ENTRYPOINT ["/tini", "--", "/usr/local/bin/toolbox.sh"]
|
||||
CMD ["/bin/bash"]
|
||||
Reference in new issue
Block a user