You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2022/06/16 23:52:08 UTC

[commons-crypto] branch sebb-docker updated: Don't copy build script

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch sebb-docker
in repository https://gitbox.apache.org/repos/asf/commons-crypto.git


The following commit(s) were added to refs/heads/sebb-docker by this push:
     new 2c59385  Don't copy build script
2c59385 is described below

commit 2c59385d2b499b59488e5f5ffccbc3ada1d68a4e
Author: Sebb <se...@apache.org>
AuthorDate: Fri Jun 17 00:52:02 2022 +0100

    Don't copy build script
---
 src/docker/build.sh => build.sh | 2 ++
 src/docker/Dockerfile           | 4 +---
 src/docker/README.md            | 3 +++
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/docker/build.sh b/build.sh
similarity index 96%
rename from src/docker/build.sh
rename to build.sh
index 030234a..0bd8072 100755
--- a/src/docker/build.sh
+++ b/build.sh
@@ -15,6 +15,8 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+# Script to build native files under Docker
+
 set -e
 
 cd /home/crypto # must agree with virtual mount in docker-compose.yaml
diff --git a/src/docker/Dockerfile b/src/docker/Dockerfile
index f16e58b..3e01a5d 100644
--- a/src/docker/Dockerfile
+++ b/src/docker/Dockerfile
@@ -51,9 +51,7 @@ RUN dpkg --add-architecture i386 && apt-get update \
 RUN wget https://dlcdn.apache.org/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz \
 && tar xf apache-maven-*.tar.gz -C /opt && ln -s /opt/apache-maven-3.6.3 /opt/maven
 
-WORKDIR /home/build
-
-COPY build.sh .
+WORKDIR /home/crypto
 
 CMD /bin/bash
 
diff --git a/src/docker/README.md b/src/docker/README.md
index 50f7aaa..15f3784 100644
--- a/src/docker/README.md
+++ b/src/docker/README.md
@@ -18,12 +18,15 @@
 # Building with Docker
 
 ```
+  cd src/docker
   docker compose build crypto
 ```
 
 # Running with Docker
 
 ```
+  cd src/docker
   docker compose run crypto # run shell
+  OR
   docker compose run --entrypoint ./build.sh crypto # run build
 ```
\ No newline at end of file