Commit 2d86463
authored
ci: java container build to use go.mod at the root (#2679)
After the migration from sdk-platform-java to librarian, we start
to use the go.mod at the root of the librarian repository.
This is the same setup as the automation's dispatcher (
infra/dispatcher/Dockerfile).
I confirmed that the Dockerfile works:
```
suztomo@suztomo:~/librarian$ docker build -f internal/container/java/Dockerfile .
[+] Building 21.1s (14/14) FINISHED docker:default
...(omit)...
=> [builder 6/7] COPY . . 0.7s
=> [builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -v -o /librariangen ./internal/container/java 14.0s
=> [stage-1 2/2] COPY --from=builder /librariangen /usr/local/bin/librariangen 0.1s
=> exporting to image 0.1s
=> => exporting layers 0.0s
=> => writing image sha256:4dd4813eeea24c268d638011d961641a11d31014b5abbc399b20346602424fae
```1 parent 09dc53f commit 2d86463
2 files changed
+11
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
28 | 35 | | |
29 | 36 | | |
30 | 37 | | |
| |||
0 commit comments