Skip to content

Commit

Permalink
gitpod: Move make into init in .gitpod.yml (#2933) [skip ci][ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay committed Apr 16, 2021
1 parent 42db893 commit f6f4107
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ SHELL ["/bin/bash", "-c"]

RUN sudo apt-get update && sudo apt-get install -y netcat telnet
RUN brew update && brew install bash-completion drud/ddev/ddev golangci-lint
RUN npm install -g markdownlint-cli

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

Expand Down
24 changes: 13 additions & 11 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@

image:
file: .gitpod.Dockerfile

tasks:
- name: make
command: |
# Wait for docker to come up before doing make (make requires docker)
while ! docker ps; do
sleep 1
done
.githooks/linkallchecks.sh
- name: prebuild
prebuild: |
sudo docker-up >/dev/null 2>&1 &
DOCKERPID=$!
while ! docker ps >/dev/null 2>&1; do sleep 1; done
export DDEV_NONINTERACTIVE=true
make
- name: docker_up
command: sudo docker-up

mkdir -p /workspace/simpleproj && cd /workspace/simpleproj && ddev config --auto && cp ~/bin/gitpod-setup-ddev.sh .ddev && printf "<?php\nphpinfo();\n" >index.php &&.ddev/gitpod-setup-ddev.sh
sudo kill $DOCKERPID
- name: terminal
command: |
sudo docker-up >/dev/null 2>&1 &
while ! docker ps >/dev/null 2>&1; do sleep 1; done
ddev start -y simpleproj
vscode:
extensions:
- premparihar.gotestexplorer@0.1.10:jvUM8akrQ67vQxfjaxCgCg==
Expand Down

0 comments on commit f6f4107

Please sign in to comment.