Add a sample Dockerfile.
This commit is contained in:
commit
dea76746a6
63
.lighthouse/triggers.yaml
Normal file
63
.lighthouse/triggers.yaml
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
apiVersion: config.lighthouse.jenkins-x.io/v1alpha1
|
||||||
|
kind: TriggerConfig
|
||||||
|
spec:
|
||||||
|
postsubmits:
|
||||||
|
- name: semver
|
||||||
|
agent: tekton-pipeline
|
||||||
|
branches:
|
||||||
|
- ^main$
|
||||||
|
- ^master$
|
||||||
|
context: homepage
|
||||||
|
max_concurrency: 1
|
||||||
|
# Override https-based url from lighthouse events.
|
||||||
|
clone_uri: "git@code.fizz.buzz:talexander/homepage.git"
|
||||||
|
pipeline_run_spec:
|
||||||
|
serviceAccountName: build-bot
|
||||||
|
pipelineRef:
|
||||||
|
name: semver
|
||||||
|
namespace: lighthouse
|
||||||
|
workspaces:
|
||||||
|
- name: git-source
|
||||||
|
volumeClaimTemplate:
|
||||||
|
spec:
|
||||||
|
storageClassName: "nfs-client"
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 10Gi
|
||||||
|
subPath: homepage-source
|
||||||
|
params: []
|
||||||
|
- name: build-homepage
|
||||||
|
agent: tekton-pipeline
|
||||||
|
branches:
|
||||||
|
- "^v[0-9]+\\.[0-9]+\\.[0-9]+$"
|
||||||
|
context: build-docker
|
||||||
|
max_concurrency: 1
|
||||||
|
# Override https-based url from lighthouse events.
|
||||||
|
clone_uri: "git@code.fizz.buzz:talexander/homepage.git"
|
||||||
|
pipeline_run_spec:
|
||||||
|
serviceAccountName: build-bot
|
||||||
|
pipelineRef:
|
||||||
|
name: build-docker-pipeline
|
||||||
|
workspaces:
|
||||||
|
- name: git-source
|
||||||
|
volumeClaimTemplate:
|
||||||
|
spec:
|
||||||
|
storageClassName: "nfs-client"
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 10Gi
|
||||||
|
subPath: git-source
|
||||||
|
- name: docker-credentials
|
||||||
|
secret:
|
||||||
|
secretName: harbor-plain
|
||||||
|
params:
|
||||||
|
- name: image-name
|
||||||
|
value: "harbor.fizz.buzz/private/homepage"
|
||||||
|
- name: path-to-image-context
|
||||||
|
value: .
|
||||||
|
- name: path-to-dockerfile
|
||||||
|
value: docker/server/Dockerfile
|
6
docker/server/Dockerfile
Normal file
6
docker/server/Dockerfile
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
FROM harbor.fizz.buzz/dockerhub/library/python:3.9
|
||||||
|
|
||||||
|
RUN useradd -m -g nogroup server
|
||||||
|
USER server
|
||||||
|
|
||||||
|
CMD ["python", "-c", "print('worked')"]
|
Loading…
x
Reference in New Issue
Block a user