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

Add dockerfiles for juno #3

Closed
wants to merge 1 commit into from
Closed
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
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ services:
install:
- docker build -t loki loki
- docker build -t loki-unstable loki-unstable
- docker build -t juno-unstable juno-unstable
- docker build -t juno-devel juno-devel

script:
- echo BUILDS PASSED
33 changes: 33 additions & 0 deletions juno-devel/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
FROM ubuntu:bionic

# Dependency for gpg --recv
RUN apt-get update && apt-get install -y dirmngr

# Adding through file instead of add-apt-repository saves the need for python3
ADD elementary-ppa.list /etc/apt/sources.list.d/

RUN apt-key adv --keyserver keyserver.ubuntu.com --recv 6C8769CEDC20F5E66C3B7D37BF36996C4E1F8A59

ENV containerVersion=210118
ENV dependencies=""

RUN apt-get update && \
apt-get install -y elementary-os-overlay \
libglib2.0-dev \
libgtk-3-dev \
libgranite-dev \
libwingpanel-2.0-dev \
cmake \
meson \
valac \
intltool && \
apt-get dist-upgrade -y && \
apt-get clean && \
rm -R /var/lib/apt/lists/* && \
mkdir /tmp/build-dir

WORKDIR /tmp/build-dir

ADD start.sh /start

ENTRYPOINT ["/start"]
6 changes: 6 additions & 0 deletions juno-devel/elementary-ppa.list
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

deb http://ppa.launchpad.net/elementary-os/daily/ubuntu bionic main
deb-src http://ppa.launchpad.net/elementary-os/daily/ubuntu bionic main

deb http://ppa.launchpad.net/elementary-os/os-patches/ubuntu bionic main
deb-src http://ppa.launchpad.net/elementary-os/os-patches/ubuntu bionic main
15 changes: 15 additions & 0 deletions juno-devel/start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

set -e

if [ -n "$dependencies" ]; then
apt-get update
apt-get install -y $dependencies
fi

# If no command is passed open bash
if [ -z "$@" ]; then
exec "/bin/bash"
else
exec "$@"
fi
17 changes: 17 additions & 0 deletions juno-unstable/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM ubuntu:bionic

# Dependency for gpg --recv
RUN apt-get update && apt-get install -y dirmngr

# Adding through file instead of add-apt-repository saves the need for python3
ADD elementary-ppa.list /etc/apt/sources.list.d/

RUN apt-key adv --keyserver keyserver.ubuntu.com --recv 6C8769CEDC20F5E66C3B7D37BF36996C4E1F8A59

ENV containerVersion=210118

RUN apt-get update && \
apt-get install -y elementary-os-overlay && \
apt-get dist-upgrade -y && \
apt-get clean && \
rm -R /var/lib/apt/lists/*
6 changes: 6 additions & 0 deletions juno-unstable/elementary-ppa.list
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

deb http://ppa.launchpad.net/elementary-os/daily/ubuntu bionic main
# deb-src http://ppa.launchpad.net/elementary-os/daily/ubuntu bionic main

deb http://ppa.launchpad.net/elementary-os/os-patches/ubuntu bionic main
# deb-src http://ppa.launchpad.net/elementary-os/os-patches/ubuntu bionic main
17 changes: 17 additions & 0 deletions juno/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM ubuntu:bionic

# Dependency for gpg --recv
RUN apt-get update && apt-get install -y dirmngr

# Adding through file instead of add-apt-repository saves the need for python3
ADD elementary-ppa.list /etc/apt/sources.list.d/

RUN apt-key adv --keyserver keyserver.ubuntu.com --recv 6C8769CEDC20F5E66C3B7D37BF36996C4E1F8A59

ENV containerVersion=210118

RUN apt-get update && \
apt-get install -y elementary-os-overlay && \
apt-get dist-upgrade -y && \
apt-get clean && \
rm -R /var/lib/apt/lists/*
6 changes: 6 additions & 0 deletions juno/elementary-ppa.list
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

deb http://ppa.launchpad.net/elementary-os/stable/ubuntu bionic main
# deb-src http://ppa.launchpad.net/elementary-os/stable/ubuntu bionic main

deb http://ppa.launchpad.net/elementary-os/os-patches/ubuntu bionic main
# deb-src http://ppa.launchpad.net/elementary-os/os-patches/ubuntu bionic main