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 \ && chmod a+x /tmp/GoDEXdriver-1.1.6/install-driver \
&& (cd /tmp/GoDEXdriver-1.1.6 && ./install-driver) && (cd /tmp/GoDEXdriver-1.1.6 && ./install-driver)
RUN echo 'root:1234' | chpasswd
ENTRYPOINT ["/printnatura/entrypoint.sh"] ENTRYPOINT ["/printnatura/entrypoint.sh"]
CMD ["node", "main.js"] CMD ["node", "main.js"]

1
Jenkinsfile vendored
View File

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

View File

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

View File

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