~nka/devc

91d092dc82482b69175ae691e675dc8508e4d0a5 — Nicolas KAROLAK 3 days ago 8938998
use archlinux base
3 files changed, 11 insertions(+), 22 deletions(-)

M .devcontainer/Dockerfile
M .devcontainer/devcontainer.json
M .devcontainer/docker-compose.yml
M .devcontainer/Dockerfile => .devcontainer/Dockerfile +3 -3
@@ 1,12 1,12 @@
FROM nikaro/debian-dev:latest
FROM nikaro/archlinux-dev:latest

# go path
ENV GOPATH ${HOME}/go
# add pyvenv to path
ENV PATH ${GOPATH}/bin:/usr/local/go/bin:${PATH}

ARG GO_VERSION=1.13.5
ARG GO_SHA256SUM=512103d7ad296467814a6e3f635631bd35574cab3369a97a323c9a585ccaa569
ARG GO_VERSION=1.15
ARG GO_SHA256SUM=2d75848ac606061efe52a8068d0e647b35ce487a15bb52272c427df485193602
RUN \
    # golang
    sudo curl -LOSs https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz && \

M .devcontainer/devcontainer.json => .devcontainer/devcontainer.json +2 -2
@@ 2,12 2,12 @@
    "name": "devc",
    "dockerComposeFile": "docker-compose.yml",
    "service": "app",
    "workspaceFolder": "/workspace",
    "extensions": [
        "ms-vscode.go"
    ],
    "settings": {},
    "vim-extensions": [
        "fatih/vim-go"
    ],
    "settings": {}
    "vim-settings": []
}

M .devcontainer/docker-compose.yml => .devcontainer/docker-compose.yml +6 -17
@@ 11,24 11,13 @@ services:
    volumes:
      # workspace
      - "..:/workspace"
      # vim config
      - "$HOME/.config/nvim:/home/code/.config/nvim:ro"
      # git config
      - "$HOME/.config/git:/home/code/.config/git:ro"
      # ssh config
      - "$HOME/.config/ssh:/home/code/.config/ssh:ro"
      - "$HOME/.ssh:/home/code/.ssh:ro"
      - "$SSH_AUTH_SOCK:/ssh-agent:ro"
      # gpg config
      - "$HOME/.config/gnupg:/home/code/.config/gnupg:ro"
      # docker socket
      - "/var/run/docker.sock:/var/run/docker.sock"
    tmpfs:
      - "/run/user/1000/:mode=0700,uid=1000,gid=1000"
      # dotfiles
      - "$HOME/.config/nvim:/home/code/.config/nvim"
      - "$HOME/.config/git:/home/code/.config/git"
      - "$HOME/.ssh:/home/code/.ssh"
      - "$HOME/.gnupg:/home/code/.gnupg"
      - "$SSH_AUTH_SOCK:/ssh-agent"
    environment:
      - "SSH_AUTH_SOCK=/ssh-agent"
      - "GNUPGHOME=/home/code/.config/gnupg"
    working_dir: "/workspace"
    command: "sleep infinity"

...