Skip to content

Commit 3d30a2a

Browse files
author
Jagger De Leo
committed
Merge main
2 parents bde19c9 + db59ad6 commit 3d30a2a

File tree

11 files changed

+37
-219
lines changed

11 files changed

+37
-219
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,6 @@ jobs:
202202
- name: Run subo build
203203
run: subo build ${{ matrix.language }}-test --builder-tag dev
204204

205-
- name: Check TinyGo version number consistency
206-
if: matrix.language == 'tinygo'
207-
run: builder/docker/tinygo/smoke.sh
208-
209205
release-image-subo:
210206
if: startsWith(github.ref, 'refs/tags/v')
211207
needs: [image, lint, test, smoke]

.github/workflows/tinygo-base.yml

Lines changed: 0 additions & 96 deletions
This file was deleted.

builder/builder.mk

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# all paths are relative to project root
22
ver = $(shell cat ./builder/.image-ver)
3-
tinygo_ver = $(shell cat ./builder/docker/tinygo/.tinygo-ver)
43

54
builder/docker: subo/docker builder/docker/rust builder/docker/swift builder/docker/as builder/docker/tinygo builder/docker/grain builder/docker/javascript builder/docker/wat
65

@@ -38,16 +37,6 @@ builder/docker/swift/publish:
3837
builder/docker/swift/dev/publish:
3938
docker buildx build . -f builder/docker/swift/Dockerfile --platform linux/amd64,linux/arm64 -t suborbital/builder-swift:dev --push
4039

41-
# TinyGo (base) docker targets
42-
builder/docker/tinygo-base:
43-
DOCKER_BUILDKIT=1 docker build . -f builder/docker/tinygo/Dockerfile.base -t suborbital/tinygo-base:$(tinygo_ver)
44-
45-
builder/docker/tinygo-base/publish:
46-
docker buildx build . -f builder/docker/tinygo/Dockerfile.base --platform linux/amd64,linux/arm64 -t suborbital/tinygo-base:$(tinygo_ver) --push
47-
48-
builder/docker/tinygo-base/dev/publish:
49-
docker buildx build . -f builder/docker/tinygo/Dockerfile.base --platform linux/amd64,linux/arm64 -t suborbital/tinygo-base:dev --push
50-
5140
# TinyGo docker targets
5241
builder/docker/tinygo:
5342
DOCKER_BUILDKIT=1 docker build . -f builder/docker/tinygo/Dockerfile -t suborbital/builder-tinygo:$(ver)

builder/docker/tinygo/.tinygo-ver

Lines changed: 0 additions & 1 deletion
This file was deleted.

builder/docker/tinygo/Dockerfile

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,29 @@
1-
FROM suborbital/tinygo-base:v0.23.0 as tinygo
21
FROM suborbital/subo:dev as subo
2+
FROM golang:1.18-bullseye as go
3+
4+
FROM debian:bullseye-slim
5+
RUN apt-get update && apt-get -y install wget
6+
7+
WORKDIR /usr/local
8+
9+
# update TinyGo version here!
10+
ARG TINYGO_VERSION=0.24.0
11+
ARG TARGETARCH
12+
13+
RUN wget -O tinygo.tar.gz \
14+
"https://github.com/tinygo-org/tinygo/releases/download/v${TINYGO_VERSION}/tinygo${TINYGO_VERSION}.linux-${TARGETARCH}.tar.gz" && \
15+
tar xf tinygo.tar.gz && \
16+
bash -c "rm -rf tinygo/src/device/{sam,stm32,nxp,nrf,avr,esp,rp}" && \
17+
bash -c "rm -rf tinygo/lib/{nrfx,mingw-w64,macos-minimal-sdk}" && \
18+
rm -rf tinygo/src/examples && \
19+
rm -rf tinygo.tar.gz
320

4-
FROM golang:1.18-bullseye
521
WORKDIR /root/runnable
6-
COPY --from=tinygo /root/release/tinygo /usr/local/tinygo
22+
23+
COPY --from=go /usr/local/go /usr/local/
724
COPY --from=subo /go/bin/subo /usr/local/bin
8-
RUN ln -s /usr/local/tinygo/bin/tinygo /usr/local/bin/tinygo && \
9-
ln -s /usr/local/tinygo/bin/wasm-opt /usr/local/bin/wasm-opt
10-
RUN go mod download github.com/suborbital/reactr@latest
25+
26+
ENV PATH="/usr/local/tinygo/bin:/usr/local/go/bin:$PATH"
27+
28+
RUN go mod download github.com/suborbital/reactr@latest && \
29+
rm -rf /go/pkg/mod/github.com/suborbital/reactr*/rwasm/testdata

builder/docker/tinygo/Dockerfile.base

Lines changed: 0 additions & 34 deletions
This file was deleted.

builder/docker/tinygo/smoke.sh

Lines changed: 0 additions & 55 deletions
This file was deleted.

cli/repl/repl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func (r *Repl) Run() error {
3434
}
3535

3636
for {
37-
fmt.Println("\n\n1. Create or edit a function")
37+
fmt.Println("\n\n1. Create/edit a function")
3838
fmt.Print("\nChoose an option: ")
3939

4040
opt, err := input.ReadStdinString()

docs/get-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Flags:
5454
```
5555

5656
## Building Wasm Runnables
57-
**It is reccomended that Docker be installed to build Wasm Runnables. See below if you do not have Docker installed.**
57+
**It is recommended that Docker be installed to build Wasm Runnables. See below if you do not have Docker installed.**
5858

5959
To build your Runnable into a Wasm module for Reactr or Atmo, use the build command:
6060
```

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ go 1.18
55
require (
66
github.com/deislabs/go-bindle v0.1.1-0.20220201013943-612c59d27f42
77
github.com/google/go-github/v41 v41.0.0
8-
github.com/hashicorp/go-version v1.5.0
8+
github.com/hashicorp/go-version v1.6.0
99
github.com/pelletier/go-toml v1.9.5
1010
github.com/pkg/errors v0.9.1
11-
github.com/spf13/cobra v1.4.0
12-
github.com/stretchr/testify v1.7.4
11+
github.com/spf13/cobra v1.5.0
12+
github.com/stretchr/testify v1.8.0
1313
github.com/suborbital/atmo v0.4.7
1414
golang.org/x/mod v0.5.1
1515
gopkg.in/yaml.v2 v2.4.0

0 commit comments

Comments
 (0)