Skip to content

Commit

Permalink
Print out stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
pflooky committed Jul 1, 2024
1 parent 326858e commit 245a494
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,10 @@ options: #additional options
```shell
CONFIGURATION_FILE=example/postgres-to-csv.yaml INSTA_INFRA_FOLDER=../insta-infra BASE_FOLDER=/tmp/data-caterer-action node src/index.js
```

docker run --entrypoint /bin/bash -it datacatering/data-caterer-basic:0.11.2 -c
'echo "1001:x:1001:127:github:/opt/app:/sbin/nologin" >> /etc/passwd && addgroup
-G github && adduser -G github -u 1001 github && cat /etc/passwd && bash
/opt/app/run-data-caterer.sh' docker run --entrypoint /bin/bash -it
datacatering/data-caterer-basic:0.11.2 -c 'adduser -G github -u 1001 github &&
cat /etc/passwd && bash /opt/app/run-data-caterer.sh'
6 changes: 3 additions & 3 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,17 +324,17 @@ function createDataCatererDockerRunCommand(
const gid = process.getgid()
const setUser = `addgroup -G github && adduser -G github -u ${uid} github`
const setUserInPasswd = `echo "${uid}:x:${uid}:${gid}:github:/opt/app:/sbin/nologin" >> /etc/passwd`
///bin/bash -c '${setUserInPasswd} && ${setUser} && cat /etc/passwd && bash /opt/app/run-data-caterer.sh'`
return `docker run -d -p 4040:4040 \
--network insta-infra_default \
--name data-caterer \
--user ${uid}:${gid} \
--user github:${gid} \
-v ${confFolder}:/opt/app/custom \
-v ${sharedFolder}:/opt/app/shared \
-e APPLICATION_CONFIG_PATH=/opt/app/custom/application.conf \
-e PLAN_FILE_PATH=/opt/app/custom/plan/${planName} \
${dockerEnvVars.join(' ')} \
datacatering/${imageName}:${version} \
/bin/bash -c '${setUserInPasswd} && ${setUser} && cat /etc/passwd && bash /opt/app/run-data-caterer.sh'`
datacatering/${imageName}:${version}`
}

module.exports = {
Expand Down

0 comments on commit 245a494

Please sign in to comment.