mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-14 16:49:10 +00:00
ci: move dev-container again, just dont run it with everything else
This commit is contained in:
parent
ac830fc946
commit
efe1e5ea5e
4 changed files with 6 additions and 4 deletions
|
@ -1,44 +0,0 @@
|
|||
load("//:hack/publish.bzl", "publish")
|
||||
load("@io_bazel_rules_docker//docker/util:run.bzl", "container_run_and_commit_layer")
|
||||
load("@io_bazel_rules_docker//container:container.bzl", "container_image")
|
||||
|
||||
container_run_and_commit_layer(
|
||||
name = "bazel-layer",
|
||||
commands = [
|
||||
"go get -u github.com/bazelbuild/bazelisk",
|
||||
"ln /go/bin/bazelisk /usr/bin/bazel",
|
||||
"go get -u github.com/bazelbuild/buildtools/...",
|
||||
],
|
||||
image = "@devcontainergo//image",
|
||||
)
|
||||
|
||||
container_run_and_commit_layer(
|
||||
name = "node-layer",
|
||||
commands = [
|
||||
"su vscode -c 'source /usr/local/share/nvm/nvm.sh && nvm install lts/* 2>&1'",
|
||||
],
|
||||
image = "@devcontainergo//image",
|
||||
)
|
||||
|
||||
container_image(
|
||||
name = "dev-container",
|
||||
base = "@devcontainergo//image",
|
||||
layers = [
|
||||
":bazel-layer",
|
||||
":node-layer",
|
||||
],
|
||||
)
|
||||
|
||||
publish(
|
||||
name = "publish-dev-container",
|
||||
image = ":dev-container",
|
||||
service = "dev-container",
|
||||
)
|
||||
|
||||
publish(
|
||||
name = "publish-dev-container-dockerhub",
|
||||
image = ":dev-container",
|
||||
prefix = "roleypoly/",
|
||||
registry = "index.docker.io",
|
||||
service = "dev-container",
|
||||
)
|
|
@ -1,24 +0,0 @@
|
|||
# Dev Container
|
||||
|
||||
This package houses the dev-container image.
|
||||
|
||||
It includes:
|
||||
|
||||
- go (1.15.2)
|
||||
- bazel (latest via bazelisk)
|
||||
- node (latest lts via nvm)
|
||||
|
||||
As well as any other tooling within VSCode Dev Containers.
|
||||
|
||||
## Building
|
||||
|
||||
To build and use locally,
|
||||
|
||||
```sh
|
||||
bazel run //srv/dev-container && docker run -it --rm bazel/src/dev-container:dev-container
|
||||
```
|
||||
|
||||
To just use, this is published to two registries. There is no effective difference, except that GitHub's registry requires login, and Docker Hub does not.
|
||||
|
||||
- `docker pull roleypoly/dev-container:main`
|
||||
- `docker pull docker.pkg.github.com/roleypoly/roleypoly/dev-container:main`
|
Loading…
Add table
Add a link
Reference in a new issue