0

If I install .net and mysql one by one I get it up and running by using FROM gitpod/workspace-mysql and then trying FROM gitpod/workspace-dotnet

But if both is needed, I guess I need to create a gitpod.Dockerfile. This is where have problems. I started by trying to get mysql to work. Got some ideas from here: https://docs.pingcap.com/tidbcloud/dev-guide-playground-gitpod

gitpod.Dockerfile:

FROM gitpod/workspace-full:latest

RUN sudo apt install mysql-client -y

.gitpod.yml

image: file: .gitpod.Dockerfile

Running this command: mysql -e "show databases;" I get: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

I have tried many other google hits, the all error out on me.

Any ideas?

Wai Ha Lee
  • 8,598
  • 83
  • 57
  • 92

0 Answers0