Skip to content

Conversation

@robertbachmann
Copy link

Use 'exec' so that entrypoint.sh's bash process is replaced
by catalina.sh, and catalina.sh runs as PID 1.

Use 'exec' so that entrypoint.sh's bash process is replaced
by catalina.sh, and catalina.sh runs as PID 1.
@sgwood63 sgwood63 closed this Aug 4, 2019
@sgwood63
Copy link
Contributor

sgwood63 commented Aug 4, 2019

Have added this exec to the entrypoint.sh

BigGillyStyle added a commit to BigGillyStyle/js-docker that referenced this pull request Oct 4, 2021
The removed line in this PR...

`echo "nameserver 8.8.8.8" | tee /etc/resolv.conf > /dev/null && \`

causes a problem when executing `docker-compose build`:

```
 > [16/16] RUN echo "nameserver 8.8.8.8" | tee /etc/resolv.conf > /dev/null &&     chmod +x /usr/src/jasperreports-server/scripts/*.sh &&     /usr/src/jasperreports-server/scripts/installPackagesForJasperserver-pro-cmdline.sh && 	echo "finished installing packages" && 	cp -R /usr/src/jasperreports-server/scripts/buildomatic /usr/src/jasperreports-server/buildomatic && 	chmod +x /usr/src/jasperreports-server/buildomatic/js-* && 	chmod +x /usr/src/jasperreports-server/buildomatic/bin/*.sh && 	chmod +x /usr/src/jasperreports-server/apache-ant/bin/* &&     java -version &&     wget "https://jdbc.postgresql.org/download/postgresql-42.2.5.jar"          -P /usr/src/jasperreports-server/buildomatic/conf_source/db/postgresql/jdbc --no-verbose:
TIBCOSoftware#21 0.237 tee: /etc/resolv.conf: Read-only file system
```

When this line is removed, the build proceeds successfully, and the container starts successfully as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants