Skip to content

Commit

Permalink
update ubuntu to 22.04 and openjdk 11 (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonywinn committed Sep 24, 2022
1 parent 51c9c08 commit 1d0018b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
FROM phusion/baseimage:0.9.18
FROM phusion/baseimage:jammy-1.0.1

MAINTAINER livehouse-automaton
LABEL org.opencontainers.image.authors="livehouse-automation"

VOLUME ["/config"]

RUN export DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_FRONTEND=noninteractive && \
add-apt-repository -y ppa:webupd8team/java && \
apt-get update && \
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections && \
apt-get install -y \
wget \
oracle-java8-installer \
oracle-java8-set-default && \
openjdk-11-jre && \
usermod -u 99 nobody && \
usermod -g 100 nobody && \
mkdir -p /etc/my_init.d

COPY firstrun.sh /etc/my_init.d/firstrun.sh

RUN chmod +x /etc/my_init.d/firstrun.sh


2 changes: 1 addition & 1 deletion firstrun.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ else
#Check the latest version on github
VERSION="$(curl -sX GET https://api.github.com/repos/livehouse-automation/ha-bridge/releases/latest | grep 'tag_name' | cut -d\" -f4)"
VERSION=${VERSION:1}
echo "Latest version on bwssystems github repo is" $VERSION
echo "Latest version on livehouse-automation github repo is" $VERSION
fi

if [ ! -f /config/ha-bridge-"$VERSION".jar ]; then
Expand Down

0 comments on commit 1d0018b

Please sign in to comment.