-
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
Showing
16 changed files
with
2,463 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,12 @@ | ||
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.166.1/containers/ubuntu/.devcontainer/base.Dockerfile | ||
|
||
# [Choice] Ubuntu version: bionic, focal | ||
ARG VARIANT="focal" | ||
FROM mcr.microsoft.com/vscode/devcontainers/base:0-${VARIANT} | ||
|
||
RUN apt-get update && apt-get upgrade --yes \ | ||
&& apt-get install curl git-lfs python3-pip awscli gnupg2 --yes \ | ||
&& curl -fsSL https://get.pulumi.com | bash \ | ||
&& mv ~/.pulumi/bin/* /usr/bin \ | ||
&& mkdir -p /root/.aws \ | ||
&& export EDITOR=/usr/bin/vi |
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,2 @@ | ||
export AWS_ACCESS_KEY_ID=<AWS ACCESS ID> | ||
export AWS_SECRET_ACCESS_KEY=<AWS SECRET KEY> |
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,40 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: | ||
// https://github.com/microsoft/vscode-dev-containers/tree/v0.166.1/containers/ubuntu | ||
{ | ||
"name": "Ubuntu", | ||
"build": { | ||
"dockerfile": "Dockerfile", | ||
// Update 'VARIANT' to pick an Ubuntu version: focal, bionic | ||
"args": { "VARIANT": "focal" } | ||
}, | ||
|
||
// Set *default* container specific settings.json values on container create. | ||
"settings": { | ||
"terminal.integrated.shell.linux": "/bin/bash" | ||
}, | ||
|
||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"ms-python.python" | ||
], | ||
|
||
"mounts": [ | ||
"source=${localEnv:HOME}${localEnv:USERPROFILE}/.aws,target=/root/.aws,type=bind,consistency=cached" | ||
], | ||
|
||
/* | ||
"remoteEnv": { | ||
"AWS_ACCESS_KEY_ID": "${containerEnv:AWS_ACCESS_KEY_ID}Identity", | ||
"AWS_SECRET_ACCESS_KEY": "${containerEnv:AWS_SECRET_ACCESS_KEY}Key" | ||
}, | ||
*/ | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
|
||
// Use 'postCreateCommand' to run commands after the container is created. | ||
// "postCreateCommand": "/workspaces/Apple-ACI-AWSInfra/.devcontainer/postcreate.sh", | ||
|
||
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. | ||
// "remoteUser": "vscode" | ||
} |
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,15 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
if [ -f '/workspaces/Apple-ACI-AWSInfra/.devcontainer/container.env' ]; then | ||
echo "Adding container.env to /root/.bashrc" | ||
echo "" >> /root/.bashrc | ||
cat /workspaces/Apple-ACI-AWSInfra/.devcontainer/container.env >> /root/.bashrc | ||
else | ||
echo "container.env not found, ignoring" | ||
fi | ||
|
||
pushd ghes-cluster | ||
pip install -r requirements.txt | ||
popd |
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,30 @@ | ||
name: Python-docs-action | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
env: | ||
VERSION: 1.0 | ||
ENV: alpha | ||
|
||
jobs: | ||
build-terraform-validate: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 #install the python needed | ||
|
||
- name: Install 'Pdoc' | ||
run: pip3 install pdoc | ||
|
||
- name: Generate API Docs | ||
run: pdoc --html | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Empty file.