Skip to content

Commit

Permalink
Issue #1231: scripts/test/sample as build context
Browse files Browse the repository at this point in the history
  • Loading branch information
bschmalhofer committed Sep 21, 2021
1 parent cb42364 commit e641e3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bin/docker/build_docker_images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export BUILD_PATH=scripts/elasticsearch
hooks/build || exit 1

# build otobo-selenium-chrome
export DOCKERFILE_PATH=otobo.selenium-chrome.dockerfile
export DOCKERFILE_PATH=../../../otobo.selenium-chrome.dockerfile
export IMAGE_NAME=otobo-selenium-chrome:$DOCKER_TAG
export BUILD_PATH=.
export BUILD_PATH=scripts/test/sample
hooks/build || exit 1
3 changes: 2 additions & 1 deletion otobo.selenium-chrome.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ EXPOSE 5900/tcp
RUN sudo mkdir --parent /opt/otobo/scripts/test
RUN sudo chown -R seluser:seluser /opt/otobo

COPY --chown=seluser:seluser scripts/test/sample /opt/otobo/scripts/test/sample
# Build context is scripts/test/sample
COPY --chown=seluser:seluser . /opt/otobo/scripts/test/sample

# Add some additional meta info to the image.
# This done at the end of the Dockerfile as changed labels and changed args invalidate the layer cache.
Expand Down

0 comments on commit e641e3a

Please sign in to comment.