Skip to content

Commit

Permalink
update params to helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
Saturn-V committed Oct 19, 2023
1 parent 9c84b45 commit 1bcedba
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ jobs:
- name: Build and push (adapter)
uses: docker/build-push-action@v4
with:
context: ./docker/datasource
file: ./docker/datasource/Dockerfile
context: ./docker/adapter
file: ./docker/adapter/Dockerfile
push: true
tags: |
sjultra/pewpew-adapter:latest
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
context: .
dockerfile: ./docker/Dockerfile
volumes:
- ./docker/datasource/data:/opt/pewpew/data
- ./docker/adapter/data:/opt/pewpew/data
ports:
- 8080:8080
restart: unless-stopped
Expand Down
2 changes: 1 addition & 1 deletion docker/datasource/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM node:latest

EXPOSE 8090
WORKDIR /datasource
WORKDIR /adapter
COPY . .
RUN npm install --include-dev

Expand Down
4 changes: 2 additions & 2 deletions docker/datasource/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "pewpew-datasource",
"name": "pewpew-adapter",
"version": "1.0.0",
"description": "An adapter to pewpew to load a datasource",
"description": "An adapter for pewpew to load an external datasource",
"main": "./src/index.ts",
"scripts": {
"trace": "ts-node ./src/index.ts"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: datasource
name: adapter
spec:
schedule: {{ .Values.datasource.schedule }}
schedule: {{ .Values.adapter.schedule }}
successfulJobsHistoryLimit: 0
jobTemplate:
spec:
selector:
matchLabels:
app: datasource
app: adapter
template:
metadata:
labels:
app: datasource
app: adapter
spec:
containers:
- name: datasource
image: "{{ .Values.datasource.image }}:{{ .Values.datasource.tag }}"
- name: adapter
image: "{{ .Values.adapter.image }}:{{ .Values.adapter.tag }}"

volumeMounts:
- name: {{ .Values.adapter.name }}
mountPath: /datasource/data
mountPath: /adapter/data
# args:
# - sh
# - -c
Expand Down

0 comments on commit 1bcedba

Please sign in to comment.