@@ -44,25 +44,25 @@ See more about this in the [rules_js FAQ](https://github.com/aspect-build/rules_
44
44
## Things to try out
45
45
46
46
### Build the application
47
- ` bazel build //workshop/case5 :build `
47
+ ` bazel build //workshop/case4 :build `
48
48
49
49
### 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.
51
51
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.
53
53
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
55
55
56
56
### 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 `
59
59
http://localhost
60
60
61
61
### 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.
63
63
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 ` :
66
66
``` shell
67
67
drwxr-xr-x 0 0 0 0 1 jan 2000 usr/
68
68
drwxr-xr-x 0 0 0 0 1 jan 2000 usr/share/
0 commit comments