-
Notifications
You must be signed in to change notification settings - Fork 495
Open
Labels
Description
Describe the bug
When I try to install SecurityShepherd, docker build phase fails:
$ docker compose up
...
=> [stage-1 8/13] RUN apt-get -qq update && apt-get install -y patch libargon2-0 8.2s
=> [stage-1 9/13] RUN adduser --system --group tomcat --home /usr/local/tomcat 5.6s
=> [stage-1 10/13] RUN chown -R tomcat:${RUN_GROUP} /usr/local/tomcat 8.2s
=> [stage-1 11/13] RUN rm -rf /usr/local/tomcat/webapps/ROOT 3.2s
=> ERROR [stage-1 12/13] RUN patch /usr/local/tomcat/conf/server.xml /usr/local/tomcat/conf/ 0.4s
------
> [stage-1 12/13] RUN patch /usr/local/tomcat/conf/server.xml /usr/local/tomcat/conf/serverxml.patch:
#0 0.350 patching file /usr/local/tomcat/conf/server.xml
#0 0.353 Hunk #2 succeeded at 109 (offset -1 lines).
#0 0.361 patch: **** Can't rename file /usr/local/tomcat/conf/server.xml to /usr/local/tomcat/conf/server.xml.orig : Invalid argument
------
failed to solve: process "/bin/sh -c patch /usr/local/tomcat/conf/server.xml /usr/local/tomcat/conf/serverxml.patch" did not complete successfully: exit code: 2
To Reproduce
Steps to reproduce the behavior: (following the instructions in https://github.com/OWASP/SecurityShepherd/wiki/Docker-Environment-Setup)
- Login to fresh and up-to-date Ubuntu 22.04 system with Docker and docker-compose preinstalled; user is already member of docker group
sudo apt install git maven openjdk-8-jdkgit clone https://github.com/OWASP/SecurityShepherd.gitcd SecurityShepherdmvn -Pdocker clean install -DskipTestsdocker compose up- See error above
Expected behavior
The docker compose up should not fail but successfully start up docker containers.
Desktop (please complete the following information):
- OS: Ubuntu 22.04.2 LTS
- Browser: none; just a headless box that we entered with ssh
Further Information:
mvnversion: 3.6.3-5dockerversion: 23.0.1, built Thu Feb 9 19:47:01 2023, Git commit a5ee5b1docker-composeversion: v2.16.0 (compose as plugin)javaversion: openjdk 11.0.18 2023-01-17
Screenshots
none, just see excerpt from build above
Additional context
Add any other context about the problem here.
Reactions are currently unavailable