ipfs-inactive / jenkins

[ARCHIVED] Configuration for IPFS's build system
https://ci.ipfs.team/blue
8 stars 6 forks source link

Docker-in-docker setup for dev #13

Closed victorb closed 7 years ago

victorb commented 7 years ago

Sets up basic docker-in-docker with one example job for demonstrating how it works. Jenkinsfile looks like this:

node {
    stage("Prepare") {
        sh "echo hello > file"
        sh "echo 'FROM busybox\nCOPY file /hello' > Dockerfile"
    }
    stage("Build") {
        sh "docker build -t ipfs/dind-test ."
    }
    stage("Test") {
        sh "docker run ipfs/dind-test cat /hello"
    }
}

Confirmed to work on at least Ubuntu. Didn't get it to work on OSX but since none of us are using it, maybe we should just have linux-like system as requirement for running dev-env...

ghost commented 7 years ago

LGMT :+1:

We need to make double-double-sure that we don't allow non-trusted Jenkinsfiles.