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
|
@ -36,8 +36,6 @@ COPY GoDEXdriver-1.1.6.tar.gz /tmp/
|
|||
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,8 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "root:$CUPS_PASSWORD" | chpasswd
|
||||
cupsd
|
||||
|
||||
#Printers
|
||||
lpadmin -p labeler48 -E -v socket://10.1.11.48 -m GoDEX/godex-zx420i.ppd
|
||||
|
||||
exec $@
|
||||
exec $@
|
||||
|
|
Loading…
Reference in New Issue