-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dashboard, env: add js-wasm-node18 builder
Build and use a new container image with Node.js v18.12.1: $ docker run gcr.io/symbolic-datum-552/js-wasm-node18:latest /usr/bin/node --version v18.12.1 Use this as an opportunity to tweak/simplify the builder configuration a bit. For example, drop the dist test skips for "nolibgcc:crypto/x509" and "vendor/golang.org/x/arch" since they're no-ops, and try 3 helpers at first since I feel that might work well, and in the worst case will give us useful timing data. Add it as a non-trybot with a known issue first. Once it works, I'll switch it to be the default trybot, and drop the old builder when it stops being useful. For golang/go#57017. Change-Id: I89188fedbc6c636579754402a1ad81c588f92d71 Reviewed-on: https://go-review.googlesource.com/c/build/+/460036 Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Heschi Kreinick <heschi@google.com> Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
- Loading branch information
Showing
4 changed files
with
447 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Copyright 2022 The Go Authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style | ||
# license that can be found in the LICENSE file. | ||
|
||
FROM {{REPO}}/linux-x86-sid:20221109 | ||
LABEL maintainer="golang-dev@googlegroups.com" | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
# A copy of https://deb.nodesource.com/setup_18.x. | ||
COPY setup_18.x setup_18.x | ||
|
||
RUN bash setup_18.x && \ | ||
apt-get install -y nodejs && \ | ||
rm -rf setup_18.x /var/lib/apt/lists/* | ||
|
||
CMD ["/usr/local/bin/stage0"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Copyright 2022 The Go Authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style | ||
# license that can be found in the LICENSE file. | ||
|
||
IMAGE_NAME=$(shell basename $(CURDIR)) | ||
PROD_REPO=gcr.io/symbolic-datum-552 | ||
|
||
usage: | ||
echo "Use prod or dev targets. For dev, specify your Docker repository with the REPO=foo argument." ; exit 1 | ||
|
||
prod: Dockerfile | ||
sed 's|{{REPO}}|'"$(PROD_REPO)"'|g' Dockerfile > Dockerfile.make | ||
docker build -t $(PROD_REPO)/$(IMAGE_NAME):latest -f Dockerfile.make . | ||
|
||
pushprod: prod | ||
docker push $(PROD_REPO)/$(IMAGE_NAME):latest | ||
rm Dockerfile.make | ||
|
||
# You must provide a REPO=your-repo-name arg when you make | ||
# this target. REPO is the name of the Docker repository | ||
# that will be prefixed to the name of the image being built. | ||
dev: Dockerfile | ||
sed 's|{{REPO}}|'"$(REPO)"'|g' Dockerfile > Dockerfile.make | ||
docker build -t $(REPO)/$(IMAGE_NAME):latest -f Dockerfile.make . | ||
docker push $(REPO)/$(IMAGE_NAME):latest | ||
rm Dockerfile.make |
Oops, something went wrong.