Skip to content

Commit

Permalink
update job volumes + fix docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
code-crusher committed Feb 2, 2025
1 parent 1cb46c4 commit 0ac4ab9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ RUN BUILDKIT_VERSION=v0.19.0 && \
RUN mkdir -p /etc/buildkit && \
echo '[worker.oci]' > /etc/buildkit/buildkitd.toml && \
echo ' max-parallelism = 50' >> /etc/buildkit/buildkitd.toml && \
echo '[registry."gravity-docker-registry:5000"]' > /etc/buildkit/buildkitd.toml && \
echo '[registry."gravity-docker-registry:5000"]' >> /etc/buildkit/buildkitd.toml && \
echo ' http = true' >> /etc/buildkit/buildkitd.toml && \
echo ' insecure = true' >> /etc/buildkit/buildkitd.toml

Expand Down
15 changes: 8 additions & 7 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -685,9 +685,10 @@ spec:
add:
- SYS_ADMIN
volumeMounts:
- name: cgroup
mountPath: /sys/fs/cgroup
readOnly: true
- name: buildkit
mountPath: /var/lib/buildkit
- name: cache
mountPath: /root/.cache
env:
- name: POSTGRES_PASSWORD
valueFrom:
Expand Down Expand Up @@ -772,10 +773,10 @@ spec:
memory: "4096Mi"
cpu: "4000m"
volumes:
- name: cgroup
hostPath:
path: /sys/fs/cgroup
type: Directory`
- name: buildkit
emptyDir: {}
- name: cache
emptyDir: {}`

console.log("Generated Template: ", jobTemplate)

Expand Down

0 comments on commit 0ac4ab9

Please sign in to comment.