-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scaling ac tests: make the test pass with colima
on darwin. However, I had to use sshfs which is the only filesystem that supports mounted sockets with the following command: `colima start --arch aarch64 --vm-type=vz --vz-rosetta --cpu 8 \ --memory 8 --mount-type sshfs rosetta` and link the colima socket to `/var/run/docker.sock` as explained in [1] with: `sudo ln -sf $HOME/.colima/rosetta/docker.sock /var/run/docker.sock`. [1]: testcontainers/testcontainers-go#815 (comment)
- Loading branch information
Showing
4 changed files
with
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM golang:1.21-alpine | ||
WORKDIR /app | ||
COPY go.mod ./ | ||
RUN go mod download | ||
COPY . . | ||
RUN go build -o svr go-specs-greet/cmd/httpserver/*.go | ||
EXPOSE 8080 | ||
CMD [ "./svr" ] |
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,16 @@ | ||
package main | ||
|
||
import ( | ||
"fmt" | ||
"log" | ||
"net/http" | ||
) | ||
|
||
func main() { | ||
handler := http.HandlerFunc(func(writer http.ResponseWriter, _ *http.Request) { | ||
fmt.Fprint(writer, "Hello world") | ||
}) | ||
if err := http.ListenAndServe(":8080", handler); err != nil { //nolint:gosec | ||
log.Fatal(err) | ||
} | ||
} |
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