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 \
|
||||
&& (cd /tmp/GoDEXdriver-1.1.6 && ./install-driver)
|
||||
|
||||
RUN echo 'root:1234' | chpasswd
|
||||
|
||||
ENTRYPOINT ["/printnatura/entrypoint.sh"]
|
||||
CMD ["node", "main.js"]
|
|
@ -21,6 +21,7 @@ pipeline {
|
|||
}
|
||||
environment {
|
||||
CREDS = credentials('docker-registry')
|
||||
CUPS = credentials('printnatura')
|
||||
}
|
||||
steps {
|
||||
sh 'docker login --username $CREDS_USR --password $CREDS_PSW $REGISTRY'
|
||||
|
|
|
@ -5,6 +5,8 @@ services:
|
|||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
environment:
|
||||
CUPS_PASSWORD: ${CUPS_PSW}
|
||||
ports:
|
||||
- 631
|
||||
configs:
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "root:$CUPS_PASSWORD" | chpasswd
|
||||
cupsd
|
||||
|
||||
#Printers
|
||||
|
|
Loading…
Reference in New Issue