Skip to content

Commit

Permalink
fix docker go version (#676)
Browse files Browse the repository at this point in the history
* fix docker go version

* enable SOM compilation check
  • Loading branch information
aalu1418 committed Apr 24, 2024
1 parent 5c6f400 commit 72e2340
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/monitoring.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "Compile SOM"

on:
pull_request:

jobs:
build-container:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Setup Docker Buildx
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0

- name: Docker Buildx Build
run: docker buildx build --file ops/monitoring/Dockerfile ./
9 changes: 1 addition & 8 deletions ops/monitoring/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Build image

FROM ubuntu:20.04 AS build
FROM golang:1.21.5 AS build

# OS dependencies
RUN apt-get update && apt-get install -y wget gcc
Expand All @@ -13,13 +13,6 @@ COPY ./pkg /solana-monitoring/pkg
COPY ./go.mod /solana-monitoring/
COPY ./go.sum /solana-monitoring/

# Install golang

RUN wget -c https://dl.google.com/go/go1.18.1.linux-amd64.tar.gz -O - \
| tar -xz -C /usr/local \
&& mkdir -p /go/src /go/bin
ENV PATH /usr/local/go/bin:$PATH

# Compile binary

WORKDIR /solana-monitoring
Expand Down

0 comments on commit 72e2340

Please sign in to comment.