refs #4550 Deployment: Cups password parametized
gitea/printnatura/pipeline/head This commit looks good
Details
gitea/printnatura/pipeline/head This commit looks good
Details
This commit is contained in:
parent
b7e412d9ce
commit
fc25c73fe6
|
@ -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"]
|
|
@ -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'
|
||||||
|
|
|
@ -5,6 +5,8 @@ services:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
environment:
|
||||||
|
CUPS_PASSWORD: ${CUPS_PSW}
|
||||||
ports:
|
ports:
|
||||||
- 631
|
- 631
|
||||||
configs:
|
configs:
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "root:$CUPS_PASSWORD" | chpasswd
|
||||||
cupsd
|
cupsd
|
||||||
|
|
||||||
#Printers
|
#Printers
|
||||||
|
|
Loading…
Reference in New Issue