Skip to content

Commit

Permalink
Migrate to go-1.23
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelroquetto committed Aug 27, 2024
1 parent d6e21c7 commit 3f8cada
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/vm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
FROM alpine:latest
FROM golang:1.23-rc-alpine

# this is the toplevel Makefile target to be invoked
# see the contents of 'startup.sh' at the end of this file
ARG target=run-integration-test-vm

RUN apk update
RUN apk add --no-cache openrc
RUN apk add --no-cache go
RUN apk add --no-cache docker
RUN apk add --no-cache docker-compose
RUN apk add --no-cache git
Expand Down Expand Up @@ -42,9 +41,6 @@ tmpfs /run tmpfs defaults,size=4G
testout /build/testoutput 9p trans=virtio,version=9p2000.L 0 0
EOF

RUN echo export GOPATH=/run/go >> /etc/profile
RUN echo export GOCACHE=/run/gocache >> /etc/profile

RUN echo beyla > /etc/hostname

RUN cat <<EOF > /etc/network/interfaces
Expand Down Expand Up @@ -72,6 +68,8 @@ RUN rc-update add startup default
RUN cat <<EOF > /startup.sh
#!/bin/sh

export PATH=$PATH:/usr/local/go/bin

if [[ -n "$target" ]]; then
cd /build && make $target && touch /build/testoutput/success
poweroff
Expand Down

0 comments on commit 3f8cada

Please sign in to comment.