forked from ComplianceAsCode/compliance-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
893ea06
commit df8cfa7
Showing
2 changed files
with
24 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM gitpod/workspace-full | ||
|
||
# Install go | ||
RUN rm -rf $HOME/go $HOME/go-packages | ||
|
||
RUN echo "export GOPATH=/workspace/go" >> ~/.bashrc.d/300-go && \ | ||
echo "export GOBIN=\$GOPATH/bin" >> ~/.bashrc.d/300-go && \ | ||
echo "export GOROOT=${HOME}/go" >> ~/.bashrc.d/300-go && \ | ||
echo "export PATH=\$GOROOT/bin:\$GOBIN:\$PATH" >> ~/.bashrc | ||
RUN bash -c "source ~/.bashrc && source ~/.bashrc.d/300-go" | ||
|
||
RUN export CUSTOM_GO_VERSION=$(curl -sSL "https://raw.githubusercontent.com/ComplianceAsCode/compliance-operator/master/go.mod" | awk '/^go/{print $2".0"}') && \ | ||
curl -fsSL "https://dl.google.com/go/go${CUSTOM_GO_VERSION}.linux-amd64.tar.gz" | \ | ||
tar -xz -C $HOME |
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,10 @@ | ||
image: | ||
file: .gitpod.Dockerfile | ||
|
||
vscode: | ||
extensions: | ||
- golang.go | ||
- premparihar.gotestexplorer | ||
- eamodio.gitlens # cool git extension with a bunch of extra features | ||
|
||
|