Skip to content
This repository has been archived by the owner on Aug 12, 2020. It is now read-only.

Looking for answers: How to get docker daemon running in pipeline container? #45

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions pipec/compile.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ var compileCommand = cli.Command{
"plugins/docker",
"plugins/gcr",
"plugins/ecr",
"fnbk/drone-daemon",
},
},
cli.StringFlag{
Expand Down
17 changes: 17 additions & 0 deletions samples/sample_11/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
CI_REPO=fnbk/hello
CI_REPO_NAME=fnbk/hello
CI_REPO_LINK=https://github.com/fnbk/hello
CI_REPO_REMOTE=https://github.com/fnbk/hello.git
CI_REPO_PRIVATE=false
CI_BUILD_NUMBER=530
CI_BUILD_CREATED=1486119586
CI_BUILD_STARTED=1486119585
CI_BUILD_EVENT=push
CI_BUILD_LINK=
CI_COMMIT_SHA=48bc6acaaea144b068a307b14cbdd19768861a08
CI_COMMIT_REF=refs/heads/master
CI_COMMIT_REFSPEC=
CI_COMMIT_BRANCH=master
CI_COMMIT_MESSAGE="Fix many urls"
CI_COMMIT_AUTHOR=fnbk
CI_COMMIT_AUTHOR_NAME=fnbk
159 changes: 159 additions & 0 deletions samples/sample_11/pipeline.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
{
"pipeline": [
{
"name": "pipeline_clone",
"alias": "clone",
"steps": [
{
"name": "pipeline_clone",
"alias": "clone",
"image": "plugins/git:latest",
"working_dir": "/go/src/github.com/fnbk/hello",
"environment": {
"CI": "drone",
"CI_BUILD_CREATED": "1486119586",
"CI_BUILD_EVENT": "push",
"CI_BUILD_NUMBER": "530",
"CI_BUILD_STARTED": "1486119585",
"CI_COMMIT_AUTHOR": "fnbk",
"CI_COMMIT_AUTHOR_NAME": "fnbk",
"CI_COMMIT_BRANCH": "master",
"CI_COMMIT_MESSAGE": "Fix many urls",
"CI_COMMIT_REF": "refs/heads/master",
"CI_COMMIT_SHA": "48bc6acaaea144b068a307b14cbdd19768861a08",
"CI_REMOTE_URL": "https://github.com/fnbk/hello.git",
"CI_REPO": "fnbk/hello",
"CI_REPO_LINK": "https://github.com/fnbk/hello",
"CI_REPO_NAME": "fnbk/hello",
"CI_REPO_REMOTE": "https://github.com/fnbk/hello.git",
"CI_SYSTEM": "pipec",
"CI_SYSTEM_ARCH": "linux/amd64",
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
"CI_SYSTEM_NAME": "pipec",
"CI_WORKSPACE": "/go/src/github.com/fnbk/hello",
"DRONE": "true",
"DRONE_ARCH": "linux/amd64",
"DRONE_BRANCH": "master",
"DRONE_BUILD_CREATED": "1486119586",
"DRONE_BUILD_EVENT": "push",
"DRONE_BUILD_LINK": "https://github.com/cncd/pipec/fnbk/hello/530",
"DRONE_BUILD_NUMBER": "530",
"DRONE_BUILD_STARTED": "1486119585",
"DRONE_COMMIT": "48bc6acaaea144b068a307b14cbdd19768861a08",
"DRONE_COMMIT_AUTHOR": "fnbk",
"DRONE_COMMIT_BRANCH": "master",
"DRONE_COMMIT_MESSAGE": "Fix many urls",
"DRONE_COMMIT_REF": "refs/heads/master",
"DRONE_COMMIT_SHA": "48bc6acaaea144b068a307b14cbdd19768861a08",
"DRONE_JOB_STARTED": "1486119585",
"DRONE_REMOTE_URL": "https://github.com/fnbk/hello.git",
"DRONE_REPO": "fnbk/hello",
"DRONE_REPO_LINK": "https://github.com/fnbk/hello",
"DRONE_REPO_NAME": "hello",
"DRONE_REPO_OWNER": "fnbk",
"DRONE_REPO_SCM": "git",
"DRONE_WORKSPACE": "/go/src/github.com/fnbk/hello",
"PLUGIN_DEPTH": "0"
},
"volumes": [
"pipeline_default:/go"
],
"networks": [
{
"name": "pipeline_default",
"aliases": [
"clone"
]
}
],
"on_success": true,
"auth_config": {}
}
]
},
{
"name": "pipeline_stage_0",
"alias": "test",
"steps": [
{
"name": "pipeline_step_0",
"alias": "test",
"image": "fnbk/drone-daemon:latest",
"privileged": true,
"working_dir": "/go/src/github.com/fnbk/hello",
"environment": {
"CI": "drone",
"CI_BUILD_CREATED": "1486119586",
"CI_BUILD_EVENT": "push",
"CI_BUILD_NUMBER": "530",
"CI_BUILD_STARTED": "1486119585",
"CI_COMMIT_AUTHOR": "fnbk",
"CI_COMMIT_AUTHOR_NAME": "fnbk",
"CI_COMMIT_BRANCH": "master",
"CI_COMMIT_MESSAGE": "Fix many urls",
"CI_COMMIT_REF": "refs/heads/master",
"CI_COMMIT_SHA": "48bc6acaaea144b068a307b14cbdd19768861a08",
"CI_REMOTE_URL": "https://github.com/fnbk/hello.git",
"CI_REPO": "fnbk/hello",
"CI_REPO_LINK": "https://github.com/fnbk/hello",
"CI_REPO_NAME": "fnbk/hello",
"CI_REPO_REMOTE": "https://github.com/fnbk/hello.git",
"CI_SYSTEM": "pipec",
"CI_SYSTEM_ARCH": "linux/amd64",
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
"CI_SYSTEM_NAME": "pipec",
"CI_WORKSPACE": "/go/src/github.com/fnbk/hello",
"DRONE": "true",
"DRONE_ARCH": "linux/amd64",
"DRONE_BRANCH": "master",
"DRONE_BUILD_CREATED": "1486119586",
"DRONE_BUILD_EVENT": "push",
"DRONE_BUILD_LINK": "https://github.com/cncd/pipec/fnbk/hello/530",
"DRONE_BUILD_NUMBER": "530",
"DRONE_BUILD_STARTED": "1486119585",
"DRONE_COMMIT": "48bc6acaaea144b068a307b14cbdd19768861a08",
"DRONE_COMMIT_AUTHOR": "fnbk",
"DRONE_COMMIT_BRANCH": "master",
"DRONE_COMMIT_MESSAGE": "Fix many urls",
"DRONE_COMMIT_REF": "refs/heads/master",
"DRONE_COMMIT_SHA": "48bc6acaaea144b068a307b14cbdd19768861a08",
"DRONE_JOB_STARTED": "1486119585",
"DRONE_REMOTE_URL": "https://github.com/fnbk/hello.git",
"DRONE_REPO": "fnbk/hello",
"DRONE_REPO_LINK": "https://github.com/fnbk/hello",
"DRONE_REPO_NAME": "hello",
"DRONE_REPO_OWNER": "fnbk",
"DRONE_REPO_SCM": "git",
"DRONE_WORKSPACE": "/go/src/github.com/fnbk/hello"
},
"volumes": [
"pipeline_default:/go"
],
"networks": [
{
"name": "pipeline_default",
"aliases": [
"test"
]
}
],
"on_success": true,
"auth_config": {}
}
]
}
],
"networks": [
{
"name": "pipeline_default",
"driver": "bridge"
}
],
"volumes": [
{
"name": "pipeline_default",
"driver": "local"
}
],
"secrets": null
}
7 changes: 7 additions & 0 deletions samples/sample_11/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
workspace:
base: /go
path: src/github.com/fnbk/hello

pipeline:
test:
image: fnbk/drone-daemon