Skip to content

Commit

Permalink
update mysql dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
leon.chen committed Feb 5, 2021
1 parent ee9ca6e commit f8e0f58
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion build-image/Dockerfile.mysql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mysql:5.7 as mysql
FROM mysql:8.0 as mysql
LABEL MAINTAINER="leon.chen"

COPY production .
Expand Down
15 changes: 8 additions & 7 deletions production/kubernetes/dagger-kubernetes-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,13 @@ spec:
name: dagger-ui
ports:
- containerPort: 8080
resources:
limits:
cpu: "2"
memory: 4Gi
requests:
cpu: 500m
memory: 256Mi
restartPolicy: Always

---
Expand Down Expand Up @@ -561,7 +568,7 @@ spec:
app: dagger-mysql
spec:
containers:
- image: mysql:5.7
- image: quay.io/cloudminds/mysql:latest
name: dagger-mysql
env:
- name: MYSQL_ROOT_PASSWORD
Expand All @@ -581,16 +588,10 @@ spec:
cpu: 500m
memory: 256Mi
volumeMounts:
- mountPath: /docker-entrypoint-initdb.d
name: dagger-mysql-init
- mountPath: /var/lib/mysql
name: mysql-data
restartPolicy: Always
volumes:
- name: dagger-mysql-init
configMap:
defaultMode: 420
name: dagger-mysql-init
- name: mysql-data
persistentVolumeClaim:
claimName: mysql-data

0 comments on commit f8e0f58

Please sign in to comment.