Skip to content

Commit

Permalink
feat: add devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice committed Nov 30, 2023
1 parent fd5775a commit 73ea50b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ FROM ubuntu:22.04@sha256:2b7412e6465c3c7fc5bb21d3e6f1917c167358449fecac8176c6e49
ARG CONTAINERBASE_VERSION
ARG APT_HTTP_PROXY

LABEL org.opencontainers.image.source="https://github.com/containerbase/gitpod" \
LABEL org.opencontainers.image.source="https://github.com/containerbase/devcontainer" \
org.opencontainers.image.version="${CONTAINERBASE_VERSION}"

# Compatibillity
LABEL org.label-schema.vcs-url="https://github.com/containerbase/gitpod" \
LABEL org.label-schema.vcs-url="https://github.com/containerbase/devcontainer" \
org.label-schema.version="${CONTAINERBASE_VERSION}"

ARG USER_NAME=gitpod
ARG USER_ID=33333
ARG PRIMARY_GROUP_ID=33333
ARG USER_NAME=vscode
ARG USER_ID=1000
ARG PRIMARY_GROUP_ID=1000

# Set env and shell
ENV BASH_ENV=/usr/local/etc/env ENV=/usr/local/etc/env PATH=/home/$USER_NAME/bin:$PATH
Expand All @@ -31,7 +31,7 @@ COPY --from=containerbase /usr/local/bin/ /usr/local/bin/
COPY --from=containerbase /usr/local/containerbase/ /usr/local/containerbase/
RUN install-containerbase

# add required gitpod and other system packages
# add required devcontainer and other system packages
RUN set -ex; \
install-apt \
g++ \
Expand Down Expand Up @@ -68,7 +68,7 @@ RUN corepack enable
# renovate: datasource=github-releases packageName=containerbase/python-prebuild
RUN install-tool python 3.12.0

# prepare some tools for gitpod
# prepare some tools for devcontainer
#RUN prepare-tool python

USER $USER_NAME
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# containerbase gitpod
# containerbase devcontainer

[![Build status](https://github.com/containerbase/gitpod/actions/workflows/build.yml/badge.svg)](https://github.com/containerbase/gitpod/actions/workflows/build.yml?query=branch%3Amain)
![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/containerbase/gitpod)
![License: MIT](https://img.shields.io/github/license/containerbase/gitpod)
[![Build status](https://github.com/containerbase/devcontainer/actions/workflows/build.yml/badge.svg)](https://github.com/containerbase/devcontainer/actions/workflows/build.yml?query=branch%3Amain)
![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/containerbase/devcontainer)
![License: MIT](https://img.shields.io/github/license/containerbase/devcontainer)

A docker base image for Gitpod usage.
A Docker base image for Visual Studio Code Dev Containers usage.

This repository is the source for the Github container registry image [`ghcr.io/containerbase/gitpod`](https://github.com/containerbase/gitpod/pkgs/container/gitpod).
This repository is the source for the Github container registry image [`ghcr.io/containerbase/devcontainer`](https://github.com/containerbase/devcontainer/pkgs/container/devcontainer).
Commits to `main` branch are automatically build and published.

This image allows `sudo` without password.
Expand Down
2 changes: 1 addition & 1 deletion builder.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"image": "gitpod",
"image": "devcontainer",
"versioning": "semver",
"startVersion": "9.25.0",
"cache": "docker-build-cache",
Expand Down

0 comments on commit 73ea50b

Please sign in to comment.