github.com/ddev/ddev@v1.23.2-0.20240519125000-d824ffe36ff3/.gitpod/images/Dockerfile (about) 1 FROM gitpod/workspace-base:latest as workspace-base 2 SHELL ["/bin/bash", "-c"] 3 4 USER root 5 6 RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg 7 RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" > /etc/apt/sources.list.d/nodesource.list 8 9 RUN install -m 0755 -d /etc/apt/keyrings 10 RUN curl -fsSL https://pkg.ddev.com/apt/gpg.key | gpg --dearmor | sudo tee /etc/apt/keyrings/ddev.gpg > /dev/null 11 RUN echo "deb [signed-by=/etc/apt/keyrings/ddev.gpg] https://pkg.ddev.com/apt/ * *" | sudo tee /etc/apt/sources.list.d/ddev.list 12 13 RUN apt-get update >/dev/null && sudo apt-get install -y aspell autojump ddev file mysql-client netcat nodejs python3-pip telnet >/dev/null 14 15 RUN pip3 install mkdocs pyspelling pymdown-extensions 16 RUN npm install -g markdownlint-cli 17 RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /usr/local/bin 18 19 RUN rm -rf /usr/local/go && curl -sL -o /tmp/go.tar.gz https://go.dev/dl/$(curl -fsSL "https://go.dev/dl/?mode=json" | jq -r ".[0].version").linux-amd64.tar.gz && tar -C /usr/local -xzf /tmp/go.tar.gz && rm /tmp/go.tar.gz && ln -s /usr/local/go/bin/go /usr/local/bin/go 20 21 USER gitpod 22 23 RUN echo 'if [ -r "/home/linuxbrew/.linuxbrew/etc/profile.d/bash_completion.sh" ]; then . "/home/linuxbrew/.linuxbrew/etc/profile.d/bash_completion.sh"; fi' >>~/.bashrc 24 25 RUN echo 'export PATH=~/bin:$PATH' >>~/.bashrc && mkdir -p ~/bin 26 RUN echo ". /usr/share/autojump/autojump.sh" >> ~/.bashrc 27 RUN ln -sf /workspace/ddev/.gotmp/bin/linux_amd64/ddev ~/bin/ddev 28 RUN mkdir -p ~/.ddev && echo "omit_containers: [ddev-router]" >> ~/.ddev/global_config.yaml 29 RUN sudo apt-get clean && sudo rm -rf /var/lib/apt/lists/* 30 31 # a gcc instance named gcc-5 is required for some vscode installations 32 RUN sudo ln -sf $(which gcc) /usr/local/bin/gcc-5 33 34 RUN for item in golang.org/x/tools/gopls@latest github.com/go-delve/delve/cmd/dlv@latest; do \ 35 go install $item; \ 36 done 37 RUN cp ~/go/bin/dlv ~/go/bin/dlv-dap 38 39 RUN cd /tmp && curl -LO --fail https://raw.githubusercontent.com/ddev/ddev/master/docs/mkdocs-pip-requirements && pip3 install -r /tmp/mkdocs-pip-requirements