Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix docker build process and potentially add a push to Dockerhub #17

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/docker-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Docker Image CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag fnzv/dump1090
- name: Registry login
run: echo ${{secrets.GH_DOCKERHUB}} | docker login -u fnzv --password-stdin
- name: Push image
run: docker push fnzv/dump1090
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:latest as builder
FROM ubuntu:22.04 as builder

RUN apt update && \
apt install -y \
Expand All @@ -16,15 +16,16 @@ RUN apt update && \

RUN git clone https://github.com/flightaware/dump1090.git /dump1090
WORKDIR /dump1090
RUN git checkout 849a3b73299b4f56620ab16a6b62d88e17f35608
#RUN git checkout 849a3b73299b4f56620ab16a6b62d88e17f35608
RUN make

FROM debian:latest
From ubuntu:22.04

RUN apt update && \
apt install -y \
libbladerf2 \
libhackrf0 \
#liblimesuite-dev \
liblimesuite20.10-1 \
libncurses6 \
librtlsdr0 \
Expand Down