GithubHelp home page GithubHelp logo

Comments (9)

buep avatar buep commented on July 17, 2024

Related to #8

from praqma-jenkins-casc.

buep avatar buep commented on July 17, 2024

We won't need history, nor backup, as it is only a demo instance and new builds will come again when there is activity in projects. Else we simple run some.

from praqma-jenkins-casc.

MadsNielsen avatar MadsNielsen commented on July 17, 2024

Basic setup working in docker compose with secrets and master.

from praqma-jenkins-casc.

buep avatar buep commented on July 17, 2024

You mentioned a bug in docker compose, leading to this change in CasC jenkinsci/configuration-as-code-plugin@c83470c

Can you please check the file outside and inside the container using cat -A https://linuxaria.com/pills/linux-terminal-seeing-the-unseen-characters-with-cat to verify it is a bug in docker-compose?

No matter what we can not commit to CASC project without an issue or PR... so please revert that commit and create a proper issues describing the problem there - if the problem really is with CasC and not docker compose.

FYI @ewelinawilkosz

from praqma-jenkins-casc.

buep avatar buep commented on July 17, 2024

md5sum could also be used to verify the files are identical ?

from praqma-jenkins-casc.

MadsNielsen avatar MadsNielsen commented on July 17, 2024

cat with the -A switch inside container:

jenkins@5e53860188b8:/$ cat -A /run/secrets/adminpw
secr3t$

cat with the -A switch from the host system:

mads@mads-UX302LG:/var/deploy/secrets$ cat -A /var/deploy/secrets/adminpw
secr3t$

from praqma-jenkins-casc.

buep avatar buep commented on July 17, 2024
CAT(1)                                                                                          User Commands                                                                                          CAT(1)

NAME
       cat - concatenate files and print on the standard output

SYNOPSIS
       cat [OPTION]... [FILE]...

DESCRIPTION
       Concatenate FILE(s) to standard output.

       With no FILE, or when FILE is -, read standard input.

       -A, --show-all
              equivalent to -vET

       -b, --number-nonblank
              number nonempty output lines, overrides -n

       -e     equivalent to -vE

       -E, --show-ends
              display $ at end of each line

       -n, --number
              number all output lines

       -s, --squeeze-blank
              suppress repeated empty output lines

       -t     equivalent to -vT

       -T, --show-tabs
              display TAB characters as ^I

       -u     (ignored)

       -v, --show-nonprinting
              use ^ and M- notation, except for LFD and TAB

       --help display this help and exit

       --version
              output version information and exit

from praqma-jenkins-casc.

MadsNielsen avatar MadsNielsen commented on July 17, 2024
mads@mads-UX302LG:/var/deploy/secrets$ cat /var/deploy/secrets/adminpw
secr3t
mads@mads-UX302LG:/var/deploy/secrets$
jenkins@5e53860188b8:/$ cat /run/secrets/adminpw
secr3t
jenkins@5e53860188b8:/$ 

from praqma-jenkins-casc.

buep avatar buep commented on July 17, 2024

So with the above I would conclude docker compose work correctly and as expected - it do not change the file passed in through secrets.

The problem must be they way we read it in CasC https://github.com/jenkinsci/configuration-as-code-plugin/blob/master/src/main/java/org/jenkinsci/plugins/casc/DockerSecretSource.java#L21

from praqma-jenkins-casc.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.