From 98675c4b00f13e840b4d5030efc47e10fbb1901c Mon Sep 17 00:00:00 2001 From: kimihito Date: Wed, 8 May 2019 08:49:40 +0900 Subject: [PATCH 1/2] Add .devcontainer --- .devcontainer/Dockerfile | 40 ++++++++++++++++++++++++++++++ .devcontainer/devcontainer.json | 16 ++++++++++++ .devcontainer/settings.vscode.json | 3 +++ 3 files changed, 59 insertions(+) create mode 100644 .devcontainer/Dockerfile create mode 100644 .devcontainer/devcontainer.json create mode 100644 .devcontainer/settings.vscode.json diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..4b94cdb --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,40 @@ +#------------------------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information. +#------------------------------------------------------------------------------------------------------------- + +FROM golang:1 + +RUN go get -u -v \ + github.com/mdempsky/gocode \ + github.com/uudashr/gopkgs/cmd/gopkgs \ + github.com/ramya-rao-a/go-outline \ + github.com/acroca/go-symbols \ + golang.org/x/tools/cmd/guru \ + golang.org/x/tools/cmd/gorename \ + github.com/rogpeppe/godef \ + github.com/zmb3/gogetdoc \ + github.com/sqs/goreturns \ + golang.org/x/tools/cmd/goimports \ + golang.org/x/lint/golint \ + github.com/alecthomas/gometalinter \ + honnef.co/go/tools/... \ + github.com/golangci/golangci-lint/cmd/golangci-lint \ + github.com/mgechev/revive \ + github.com/derekparker/delve/cmd/dlv 2>&1 + +# gocode-gomod +RUN go get -x -d github.com/stamblerre/gocode \ + && go build -o gocode-gomod github.com/stamblerre/gocode \ + && mv gocode-gomod $GOPATH/bin/ + +# Copy default endpoint specific user settings overrides into container to specify Python path +COPY settings.vscode.json /root/.vscode-remote/data/Machine/settings.json + +# Install git, process tools +RUN apt-get update && apt-get -y install git procps hugo + +# Clean up +RUN apt-get autoremove -y \ + && apt-get clean -y \ + && rm -rf /var/lib/apt/lists/* \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..4e15a44 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,16 @@ +// See https://aka.ms/vscode-remote/containers for the +// documentation about the devcontainer.json format +{ + "name": "til", + "dockerFile": "Dockerfile", + "extensions": [ + "ms-vscode.go", + "yzhang.markdown-all-in-one" + ], + "runArgs": [ + "--cap-add=SYS_PTRACE", + "--security-opt", + "seccomp=unconfined" + ], + "appPort": "1313:1313" +} \ No newline at end of file diff --git a/.devcontainer/settings.vscode.json b/.devcontainer/settings.vscode.json new file mode 100644 index 0000000..9043898 --- /dev/null +++ b/.devcontainer/settings.vscode.json @@ -0,0 +1,3 @@ +{ + "go.gopath": "/go" +} \ No newline at end of file From d52065db713fdd4d30852d2dfe05a626e7a33612 Mon Sep 17 00:00:00 2001 From: kimihito Date: Wed, 8 May 2019 08:53:58 +0900 Subject: [PATCH 2/2] Target hugo version --- wercker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wercker.yml b/wercker.yml index 9c0bcf5..4f5c4a6 100644 --- a/wercker.yml +++ b/wercker.yml @@ -12,7 +12,7 @@ build: code: | git submodule update --init --recursive - arjen/hugo-build: - version: "HEAD" + version: "0.18.1" theme: hemingway flags: --buildDrafts=true deploy: