2020-08-16 21:19:36 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
image: gcc
|
|
|
|
commands:
|
|
|
|
- make
|
|
|
|
|
|
|
|
- name: run
|
|
|
|
image: debian
|
|
|
|
commands:
|
|
|
|
- cp quark /usr/local/bin
|
2020-08-27 22:40:04 +00:00
|
|
|
- useradd web
|
|
|
|
- mkdir -p web && cd web && echo "hello from quark" > index.html
|
2020-08-16 21:19:36 +00:00
|
|
|
- quark -p 9130 -h run -l -u web -g web
|
|
|
|
detach: true
|
|
|
|
|
|
|
|
- name: test
|
|
|
|
image: curlimages/curl
|
|
|
|
commands:
|
|
|
|
- sleep 15
|
|
|
|
- curl http://run:9130
|