refs #4550 Deployment: Cups password parametized
gitea/printnatura/pipeline/head This commit looks good Details

This commit is contained in:
Juan Ferrer 2022-11-16 13:47:03 +01:00
parent b7e412d9ce
commit fc25c73fe6
4 changed files with 5 additions and 3 deletions

View File

@ -37,7 +37,5 @@ RUN (cd /tmp && tar -xf /tmp/GoDEXdriver-1.1.6.tar.gz) \
&& chmod a+x /tmp/GoDEXdriver-1.1.6/install-driver \
&& (cd /tmp/GoDEXdriver-1.1.6 && ./install-driver)
RUN echo 'root:1234' | chpasswd
ENTRYPOINT ["/printnatura/entrypoint.sh"]
CMD ["node", "main.js"]

1
Jenkinsfile vendored
View File

@ -21,6 +21,7 @@ pipeline {
}
environment {
CREDS = credentials('docker-registry')
CUPS = credentials('printnatura')
}
steps {
sh 'docker login --username $CREDS_USR --password $CREDS_PSW $REGISTRY'

View File

@ -5,6 +5,8 @@ services:
build:
context: .
dockerfile: Dockerfile
environment:
CUPS_PASSWORD: ${CUPS_PSW}
ports:
- 631
configs:

View File

@ -1,5 +1,6 @@
#!/bin/bash
echo "root:$CUPS_PASSWORD" | chpasswd
cupsd
#Printers