Compare commits
10 Commits
3e370d8d7a
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 828d5039dc | |||
| 7b59f21a8b | |||
| c181b3bb33 | |||
| d4e43d9921 | |||
| 7e6e431ce9 | |||
| 4f48257cc6 | |||
| 1d1a76a048 | |||
| b85fb0140c | |||
| 22a2021b9a | |||
| 225a05dde2 |
@@ -38,7 +38,11 @@
|
||||
"m4ns0ur.base64",
|
||||
"rogalmic.bash-debug",
|
||||
"streetsidesoftware.code-spell-checker",
|
||||
"ms-azuretools.vscode-containers"
|
||||
"ms-azuretools.vscode-containers",
|
||||
"eamodio.gitlens",
|
||||
"shd101wyy.markdown-preview-enhanced",
|
||||
"bierner.markdown-mermaid",
|
||||
"bierner.markdown-preview-github-styles"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,6 +22,9 @@ jobs:
|
||||
username: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_PASSWORD }}
|
||||
|
||||
- name: Set build timestamp
|
||||
run: echo "BUILD_TIMESTAMP=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_ENV
|
||||
|
||||
- name: Build and push Docker images
|
||||
id: push
|
||||
uses: docker/build-push-action@v6
|
||||
@@ -29,4 +32,6 @@ jobs:
|
||||
context: ${{gitea.workspace}}/devops
|
||||
file: ${{gitea.workspace}}/devops/Dockerfile
|
||||
push: true
|
||||
labels: |
|
||||
dev.containers.timestamp=${{ env.BUILD_TIMESTAMP }}
|
||||
tags: git.limbosolutions.com/mylimbo/devcontainers/devops:latest
|
||||
@@ -16,9 +16,7 @@ Add a `.devcontainer/devcontainer.json` to your project that points to the publi
|
||||
|
||||
```json
|
||||
{
|
||||
"name": "my-project",
|
||||
"image": "ghcr.io/your-org/devops:22.04",
|
||||
"remoteUser": "vscode"
|
||||
"image": "git.limbosolutions.com/mylimbo/devcontainers/devops:latest",
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -38,27 +38,39 @@ RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
||||
&& npm install -g npm@latest
|
||||
|
||||
# --- Install act (GitHub Actions local runner) ---
|
||||
RUN curl -s https://api.github.com/repos/nektos/act/releases/latest \
|
||||
| grep "browser_download_url.*linux-amd64.*tar.gz" \
|
||||
RUN mkdir /tmp/act \
|
||||
&& curl -s https://api.github.com/repos/nektos/act/releases/latest \
|
||||
| grep "browser_download_url.*act_Linux_x86_64.tar.gz" \
|
||||
| cut -d '"' -f 4 \
|
||||
| wget -O /usr/local/bin/act -i - \
|
||||
&& chmod +x /usr/local/bin/act
|
||||
| wget -O /tmp/act/act.tar.gz -i - \
|
||||
&& tar -xzf /tmp/act/act.tar.gz -C /tmp/act \
|
||||
&& install -m 0755 /tmp/act/act /usr/local/bin/act \
|
||||
&& rm -r /tmp/act
|
||||
|
||||
# -- install chroma for zsh
|
||||
RUN curl -s https://api.github.com/repos/alecthomas/chroma/releases/latest \
|
||||
RUN mkdir /tmp/chroma \
|
||||
&& curl -s https://api.github.com/repos/alecthomas/chroma/releases/latest \
|
||||
| grep "browser_download_url.*linux-amd64.*tar.gz" \
|
||||
| cut -d '"' -f 4 \
|
||||
| wget -O /tmp/chroma.tar.gz -i - \
|
||||
&& tar -xzf /tmp/chroma.tar.gz -C /usr/local/bin \
|
||||
&& chmod +x /usr/local/bin/chroma
|
||||
| wget -O /tmp/chroma/chroma.tar.gz -i - \
|
||||
&& tar -xzf /tmp/chroma/chroma.tar.gz -C /tmp/chroma \
|
||||
&& install -m 0755 /tmp/chroma/chroma /usr/local/bin/chroma \
|
||||
&& rm -r /tmp/chroma
|
||||
|
||||
|
||||
|
||||
# --- set zsh shell ---
|
||||
# --- set zsh shell as default ---
|
||||
RUN chsh -s /usr/bin/zsh vscode
|
||||
|
||||
RUN git clone https://github.com/zdharma-continuum/fast-syntax-highlighting.git /home/vscode/.oh-my-zsh/custom/plugins/fast-syntax-highlighting
|
||||
RUN git clone https://github.com/zsh-users/zsh-autosuggestions /home/vscode/.oh-my-zsh/custom/plugins/zsh-autosuggestions
|
||||
|
||||
# --- pip modules---
|
||||
RUN pip install openshift pyyaml
|
||||
|
||||
|
||||
# --- copy assets ---
|
||||
COPY ./assets/.zshrc /home/vscode
|
||||
|
||||
# --- labels ---
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"image": "https://gitlimbosolutions.com/mf/devcontainers/devops",
|
||||
"image": "git.limbosolutions.com/mylimbo/devcontainers/devops:latest",
|
||||
"remoteUser": "vscode",
|
||||
"name": "devops-devs",
|
||||
"runArgs": [
|
||||
@@ -18,7 +18,10 @@
|
||||
"m4ns0ur.base64",
|
||||
"rogalmic.bash-debug",
|
||||
"streetsidesoftware.code-spell-checker",
|
||||
"ms-azuretools.vscode-containers"
|
||||
"ms-azuretools.vscode-containers",
|
||||
"eamodio.gitlens",
|
||||
"shd101wyy.markdown-preview-enhanced",
|
||||
"bierner.markdown-preview-github-styles"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user