-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from jaketeater/master
Firmware: V1.0.0-beta.4
- Loading branch information
Showing
26 changed files
with
386,842 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
130,497 changes: 130,497 additions & 0 deletions
130,497
radio-programmer/v1.0.0-beta.2/firmware.ino.map
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
128,090 changes: 128,090 additions & 0 deletions
128,090
radio-programmer/v1.0.0-beta.3/firmware.ino.map
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
128,088 changes: 128,088 additions & 0 deletions
128,088
radio-programmer/v1.0.0-beta.4/firmware.ino.map
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# https://vuejs.org/v2/cookbook/dockerize-vuejs-app.html | ||
|
||
# build stage | ||
FROM node:17 as build-stage | ||
WORKDIR /app | ||
COPY package*.json ./ | ||
RUN npm install | ||
COPY . . | ||
|
||
RUN npm run build | ||
|
||
# production stage | ||
FROM nginx:stable-alpine as production-stage | ||
|
||
COPY --from=build-stage /app/dist /usr/share/nginx/html/ | ||
|
||
COPY default.conf /etc/nginx/conf.d/default.conf | ||
|
||
EXPOSE 80 | ||
CMD ["nginx", "-g", "daemon off;"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
server { | ||
listen 80; | ||
listen [::]:80; | ||
server_name localhost; | ||
|
||
location / { | ||
root /usr/share/nginx/html; | ||
try_files $uri $uri/ /index.html; | ||
} | ||
|
||
error_page 500 502 503 504 /50x.html; | ||
location = /50x.html { | ||
root /usr/share/nginx/html; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
docker build . -t jaketeater/super-simple-radio-configuration-client:latest | ||
docker push jaketeater/super-simple-radio-configuration-client:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
station-configuration-helm-chart/templates/client/Deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/deployment-v1/ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ .Values.client.name }}-deployment | ||
labels: | ||
app: {{ .Values.client.name }}-label | ||
|
||
# https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/deployment-v1/#DeploymentSpec | ||
spec: | ||
replicas: {{ .Values.client.replicas }} | ||
selector: | ||
matchLabels: | ||
app: {{ .Values.client.name }}-label | ||
|
||
# https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-template-v1/#PodTemplateSpec | ||
template: | ||
metadata: | ||
labels: | ||
app: {{ .Values.client.name }}-label | ||
|
||
# https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#PodSpec | ||
spec: | ||
|
||
# https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#Container | ||
containers: | ||
- name: {{ .Values.client.name }}-container | ||
image: {{ .Values.client.image }}:{{ .Values.client.imageTag }} | ||
|
||
imagePullPolicy: Always | ||
|
||
ports: | ||
- containerPort: {{ .Values.client.containerPort }} | ||
|
||
# https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/ | ||
livenessProbe: | ||
httpGet: | ||
path: / | ||
port: {{ .Values.client.containerPort }} | ||
initialDelaySeconds: 7 | ||
periodSeconds: 3 | ||
timeoutSeconds: 2 |
23 changes: 23 additions & 0 deletions
23
station-configuration-helm-chart/templates/client/Ingress.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# https://kubernetes.io/docs/reference/kubernetes-api/service-resources/ingress-v1/ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: {{ .Values.client.name }}-ingress | ||
|
||
# https://kubernetes.io/docs/reference/kubernetes-api/service-resources/ingress-v1/#IngressSpec | ||
spec: | ||
rules: | ||
|
||
# can be host or path - https://kubernetes.io/docs/concepts/services-networking/ingress/#the-ingress-resource | ||
- host: {{ .Values.client.host }} | ||
http: | ||
paths: | ||
- path: {{ .Values.client.path }} | ||
pathType: Prefix | ||
|
||
# https://kubernetes.io/docs/reference/kubernetes-api/service-resources/ingress-v1/#IngressBackend | ||
backend: | ||
service: | ||
name: {{ .Values.client.name }}-service | ||
port: | ||
number: {{ .Values.client.ingressPort }} |
18 changes: 18 additions & 0 deletions
18
station-configuration-helm-chart/templates/client/Service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# https://kubernetes.io/docs/reference/kubernetes-api/service-resources/service-v1/ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ .Values.client.name }}-service | ||
|
||
# https://kubernetes.io/docs/reference/kubernetes-api/service-resources/service-v1/#ServiceSpec | ||
spec: | ||
selector: | ||
app: {{ .Values.client.name }}-label | ||
|
||
ports: | ||
- protocol: TCP | ||
port: {{ .Values.client.servicePort }} | ||
targetPort: {{ .Values.client.containerPort }} | ||
|
||
# https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types | ||
type: NodePort |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,30 @@ | ||
api: | ||
name: ssr-config-api | ||
replicas: 1 | ||
image: jaketeater/super-simple-radio-station-config-api | ||
imageTag: latest | ||
containerPort: 80 | ||
servicePort: 80 | ||
ingressPort: 80 | ||
host: config.acc-radio.raiotech.com | ||
|
||
# <add to a secrets.yaml file> | ||
# api: | ||
# FLASK_SECRET_KEY: <insert your value> | ||
# WEBSITE_DB_HOST: <insert your value> | ||
# WEBSITE_DB_USER: <insert your value> | ||
# WEBSITE_DB_PASS: <insert your value> | ||
# WEBSITE_DB_DATABASE: <insert your value> | ||
# PASSWORD_SALT: <insert your value> | ||
api: | ||
name: ssr-config-api | ||
replicas: 1 | ||
path: /api/ | ||
image: jaketeater/super-simple-radio-station-config-api | ||
imageTag: latest | ||
containerPort: 80 | ||
servicePort: 80 | ||
ingressPort: 80 | ||
host: config.acc-radio.raiotech.com | ||
|
||
client: | ||
name: ssr-client | ||
replicas: 1 | ||
path: / | ||
image: jaketeater/super-simple-radio-configuration-client | ||
imageTag: latest | ||
containerPort: 80 | ||
servicePort: 80 | ||
ingressPort: 80 | ||
host: config.acc-radio.raiotech.com | ||
|
||
# <add to a secrets.yaml file> | ||
# api: | ||
# FLASK_SECRET_KEY: <insert your value> | ||
# WEBSITE_DB_HOST: <insert your value> | ||
# WEBSITE_DB_USER: <insert your value> | ||
# WEBSITE_DB_PASS: <insert your value> | ||
# WEBSITE_DB_DATABASE: <insert your value> | ||
# PASSWORD_SALT: <insert your value> |