Skip to content

Commit

Permalink
fix docker go version
Browse files Browse the repository at this point in the history
  • Loading branch information
aalu1418 committed Apr 24, 2024
1 parent 5c6f400 commit 25c47ab
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 8 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/monitoring.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "Compile SOM"

on:
push:
branches:
- develop
paths:
- monitoring/**
- relayer/**

jobs:
build:
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 25c47ab

Please sign in to comment.