forked from usds/assessment-review-tool
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup .devcontainer for a GitHub Codespace (#19)
* Create a Codespace image with required tools for ops work. * Add docs for GPG signing in a Codespace.
- Loading branch information
1 parent
3f5d14b
commit 722d2b0
Showing
3 changed files
with
40 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,20 @@ | ||
# The universal image contains many useful tools including Docker-in-Docker already set up. | ||
FROM mcr.microsoft.com/vscode/devcontainers/universal | ||
|
||
# Add Cloud Foundry cf cli | ||
# The package source is unstable (frequent 401s) so we install the package directly. | ||
RUN curl -L -o /tmp/cf8.deb https://github.com/cloudfoundry/cli/releases/download/v8.8.3/cf8-cli-installer_8.8.3_x86-64.deb \ | ||
&& dpkg -i /tmp/cf8.deb \ | ||
&& rm /tmp/cf8.deb | ||
|
||
# Install other helpful tools | ||
RUN apt-get update \ | ||
&& apt-get install -y netcat \ | ||
&& apt-get install -y postgresql-client | ||
|
||
# Install the cf-service-connect plugin to allow easy access to Postgres | ||
# See: https://github.com/cloud-gov/cf-service-connect | ||
# Note: versions > 1.1.3 require a newer version of glibc than we have (2.31). | ||
USER codespace | ||
RUN /usr/bin/cf install-plugin https://github.com/cloud-gov/cf-service-connect/releases/download/v1.1.3/cf-service-connect_linux_amd64 -f | ||
USER root |
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,5 @@ | ||
{ | ||
"build": { | ||
"dockerfile": "Dockerfile" | ||
} | ||
} |
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