Skip to content

Commit

Permalink
resolved conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
bradwich committed Sep 5, 2023
2 parents 0a73cc6 + b7c043c commit f76e2d2
Show file tree
Hide file tree
Showing 11,769 changed files with 39,931 additions and 647,313 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
39 changes: 18 additions & 21 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
FROM ubuntu:22.04
RUN apt-get update --fix-missing && apt-get upgrade -y
RUN apt-get clean
RUN apt-get install -y curl
RUN apt-get install -y wget
RUN apt-get install -y git
RUN apt-get install -y xz-utils nano
RUN apt-get install -y sudo ca-certificates file \
dpkg zip unzip zsh
RUN apt-get install -y curl wget git xz-utils nano
RUN apt-get install -y sudo ca-certificates file dpkg zip unzip zsh clang-15

#RUN apt-get install -y wget git cmake ninja-build g++ python3 curl xz-utils nano \
# hugo sudo openjdk-18-jdk-headless zsh python3-pip ca-certificates gnupg file \
Expand All @@ -24,9 +20,11 @@ WORKDIR /home/parigot/deps
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
## golang version
ENV GOLANG_VERSION_HOST="1.21.0"
ENV GOLANG_VERSION_HOST_SHORT="1.21"
## wasmtime version
ENV WASMTIME_VERSION=10.0.1


# hugo version for website
ENV HUGO_VERSION=0.114.1
# protoc because some plugins don't work with buf
Expand Down Expand Up @@ -58,20 +56,12 @@ RUN mv go go${GOLANG_VERSION_HOST}
## client side go install
WORKDIR /home/parigot/deps

#install from source
#RUN git clone --depth 1 https://github.com/golang/go.git
#ENV GOLANG_VERSION_GUEST="1.21.0"
#RUN mv go go${GOLANG_VERSION_GUEST}
#WORKDIR /home/parigot/deps/go${GOLANG_VERSION_GUEST}/src
ENV GOROOT=/home/parigot/deps/go${GOLANG_VERSION_HOST}
#ENV GOROOT_BOOTSTRAP=/home/parigot/deps/go${GOLANG_VERSION_HOST}
#RUN ./make.bash
#ENV GOROOT=
#ENV GOROOT_BOOTSTRAP=

ENV GOROOT_BOOTSTRAP=

# install Hugo
WORKDIR /home/parigot/deps
RUN ls -l
RUN dpkg -i hugo_${HUGO_VERSION}.deb
RUN rm -f hugo_${HUGO_VERSION}.deb

Expand All @@ -81,19 +71,22 @@ WORKDIR /home/parigot/deps/protoc-${PROTOC_VERSION}
RUN mv ../protoc-${PROTOC_VERSION}.zip .
RUN unzip protoc-${PROTOC_VERSION}.zip

# install golang
WORKDIR /home/parigot/deps
RUN tar xvf go.tar.gz
RUN mv go go${GOLANG_VERSION_HOST}
RUN rm go.tar.gz

## install wasmtime
WORKDIR /home/parigot/deps
RUN unxz wasmtime.tar.xz
RUN tar xf wasmtime.tar
RUN rm wasmtime.tar

#RUN mkdir /home/parigot/deps/bin
#WORKDIR /home/parigot/deps/bin

# protocol buffers
ENV PB_VERSION="21.12"
ENV PB_REL="https://github.com/protocolbuffers/protobuf/releases"
RUN curl -s -LO $PB_REL/download/v${PB_VERSION}/protoc-${PB_VERSION}-linux-x86_64.zip
#RUN curl -s -LO $PB_REL/download/v${PB_VERSION}/protoc-${PB_VERSION}-linux-x86_64.zip
RUN mkdir /home/parigot/tools
WORKDIR /home/parigot/tools
ENV PB_REL=""
Expand All @@ -109,7 +102,7 @@ ENV PB_REL=""
# RUN git clone --depth 1 --branch ${TINYGO_VERSION} https://github.com/tinygo-org/tinygo.git
# WORKDIR /usr/local/tinygo
# # these two env vars are temporary until we get tinygo built
ENV PATH=/home/parigot/tools/bin:/home/parigot/deps/go${GOLANG_VERSION_HOST}/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV PATH=/home/parigot/tools/bin:/home/parigot/deps/go${GOLANG_VERSION_HOST}/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
#GOROOT changed to test
ENV GOROOT=/home/parigot/deps/go${GOLANG_VERSION_HOST}
# RUN which go
Expand All @@ -135,7 +128,9 @@ RUN ln -s /home/parigot/deps/go${GOLANG_VERSION_HOST} /home/parigot/tools
RUN ln -s /home/parigot/deps/go${GOLANG_VERSION_HOST}/bin/go /home/parigot/tools/bin/go${GOLANG_VERSION_HOST}
## if something called "go" is not in your path, the dev container will not run
RUN ln -s /home/parigot/deps/go${GOLANG_VERSION_HOST}/bin/go /home/parigot/tools/bin/go

RUN ln -s /usr/local/bin/hugo /home/parigot/tools/bin

RUN ln -s /home/parigot/deps/protoc-${PROTOC_VERSION}/bin/protoc /home/parigot/tools/bin

# RUN ln -s /usr/local/tinygo/build/tinygo /home/parigot/tools/bin
Expand Down Expand Up @@ -190,6 +185,8 @@ RUN file /home/parigot/deps/go1.21/bin/go

ENV PROTOC_GO_VERSION=1.28.1
ENV PROTOC_GRPC_VERSION=1.51.0
RUN ls -l /home/parigot/deps/
RUN echo go${GOLANG_VERSION_HOST} install github.com/fullstorydev/grpcurl/cmd/grpcurl@latest
RUN go${GOLANG_VERSION_HOST} install github.com/fullstorydev/grpcurl/cmd/grpcurl@latest
RUN go${GOLANG_VERSION_HOST} install google.golang.org/protobuf/cmd/protoc-gen-go@v${PROTOC_GO_VERSION}
RUN go${GOLANG_VERSION_HOST} install github.com/bufbuild/connect-go/cmd/protoc-gen-connect-go@latest
Expand Down
46 changes: 0 additions & 46 deletions .devcontainer/Dockerfile.orig

This file was deleted.

10 changes: 10 additions & 0 deletions .devcontainer/both.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"folders": [
{
"path": ".."
},
{
"path": "../../parigot-example"
}
]
}
57 changes: 9 additions & 48 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,51 +1,12 @@
// 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.245.2/containers/go
{
"name": "Go",
"build": {
"dockerfile": "Dockerfile",
"args": {
// Update the VARIANT arg to pick a version of Go: 1, 1.19, 1.18
// Append -bullseye or -buster to pin to an OS version.
// Use -bullseye variants on local arm64/Apple Silicon.
"VARIANT": "1.19.3-bullseye"
}
},
"runArgs": [
//"--cap-add=SYS_PTRACE",
//"--security-opt",
//"seccomp=unconfined",
//"-v/Users/iansmith/parigot/wazero-src-1.1:/home/parigot/wazero-src-1.1:rw"
//"--add-host=host.docker.internal:host-gateway"
],
// Configure tool-specific properties.
"build": { "dockerfile": "Dockerfile" },
//"image": "iansmith/parigot-dev-0.3", ?? not allowed ??
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
// Set *default* container specific settings.json values on container create.
"settings": {
/*"go.toolsManagement.checkForUpdates": "local",*/
/* "go.useLanguageServer": true*/
/*"go.gopath": "/home/parigot/tools/go1.19.3 "*/
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"golang.Go"
]
}
},
// 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": "go version",
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "parigot",
"features": {
"git": "os-provided"
"vscode": {
"extensions": ["golang.go","ms-vscode.makefile-tools","ms-azuretools.vscode-docker",
"stkb.rewrap"]
}
},
"postCreateCommand": "go version",
"mounts": [
"source=/Users/iansmith/parigot/wazero-src-1.1,target=/home/parigot/src,type=bind,consistency=cached"
]

}
"mounts":[],
"forwardPorts": []
}
8 changes: 0 additions & 8 deletions .devcontainer/ohmyzsh/.editorconfig

This file was deleted.

11 changes: 0 additions & 11 deletions .devcontainer/ohmyzsh/.github/CODEOWNERS

This file was deleted.

2 changes: 0 additions & 2 deletions .devcontainer/ohmyzsh/.github/FUNDING.yml

This file was deleted.

68 changes: 0 additions & 68 deletions .devcontainer/ohmyzsh/.github/ISSUE_TEMPLATE/bug_report.yml

This file was deleted.

77 changes: 0 additions & 77 deletions .devcontainer/ohmyzsh/.github/ISSUE_TEMPLATE/bug_report_omz.yml

This file was deleted.

Loading

0 comments on commit f76e2d2

Please sign in to comment.