Skip to content

Commit 60f457f

Browse files
authored
Merge pull request #29 from fremtind/workshop-edits-2
workshop edits
2 parents 1a13e73 + b34a7b5 commit 60f457f

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

workshop/case1/BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ genrule(
2727

2828
### OPPGAVE 1
2929
# generer en ny fil replaced.txt som erstatter "World" med "Workshop"
30-
# hint: cmd = "cat '$(location :hello)' | sed 's/World/Workshop/' > $@"
30+
# hint: cmd = "cat '$(location :hello_world)' | sed 's/World/Workshop/' > $@"
3131
#genrule(
3232
# name = "targetnavnet_mitt",
3333
# srcs = [":target_label"],

workshop/case4/README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -44,25 +44,25 @@ See more about this in the [rules_js FAQ](https://github.com/aspect-build/rules_
4444
## Things to try out
4545

4646
### Build the application
47-
`bazel build //workshop/case5:build`
47+
`bazel build //workshop/case4:build`
4848

4949
### Run application in dev mode
50-
`bazel run //workshop/case5:dev` - note that this does not notice changed files in the workspace, so you have to restart the command to see changes.
50+
`bazel run //workshop/case4:dev` - note that this does not notice changed files in the workspace, so you have to restart the command to see changes.
5151
To get hot reloading through Bazel you need to use ibazel, see [bazel-watcher](https://github.com/bazelbuild/bazel-watcher).
52-
Then you can run `ibazel run //workshop/case5:dev` or `npx @bazel/ibazel run //workshop/case5:dev` instead.
52+
Then you can run `ibazel run //workshop/case4:dev` or `npx @bazel/ibazel run //workshop/case4:dev` instead.
5353

54-
Dev mode also works through `cd workshop/case5 && pnpm i && pnpm run dev`, which goes outside of Bazel
54+
Dev mode also works through `cd workshop/case4 && pnpm i && pnpm run dev`, which goes outside of Bazel
5555

5656
### Create a Docker image
57-
`bazel run //workshop/case5:tarball` builds an OCI compatible image and loads it into your Docker context.
58-
Afterwards, you can run the application with `docker run --rm -it -p80:80 case5:latest`
57+
`bazel run //workshop/case4:tarball` builds an OCI compatible image and loads it into your Docker context.
58+
Afterwards, you can run the application with `docker run --rm -it -p80:80 case4:latest`
5959
http://localhost
6060

6161
### Inspect the build outputs
62-
You can run `bazel cquery //workshop/case5:<target> --output=files` to get the files output for a given target.
62+
You can run `bazel cquery //workshop/case4:<target> --output=files` to get the files output for a given target.
6363

64-
If you run `bazel cquery //workshop/case5:tar --output=files` you will get the tar layer for application code.
65-
You can then inspect the tar by running `tar -tvf bazel-bin/workshop/case5/tar.tar`:
64+
If you run `bazel cquery //workshop/case4:tar --output=files` you will get the tar layer for application code.
65+
You can then inspect the tar by running `tar -tvf bazel-bin/workshop/case4/tar.tar`:
6666
```shell
6767
drwxr-xr-x 0 0 0 0 1 jan 2000 usr/
6868
drwxr-xr-x 0 0 0 0 1 jan 2000 usr/share/

0 commit comments

Comments
 (0)