Skip to content

Commit

Permalink
Merge pull request #352 from ialarmedalien/update_Dockerfile
Browse files Browse the repository at this point in the history
Update Dockerfile
  • Loading branch information
sychan authored Sep 2, 2020
2 parents ad5e402 + 965b840 commit 8fc4c60
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 15 deletions.
32 changes: 19 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,30 @@
FROM ubuntu:14.04
FROM ubuntu:20.04
MAINTAINER Shane Canon <scanon@lbl.gov>

# Update apt and install jdk and docker engine to get docker clients
# Docker installation instructions from https://docs.docker.com/engine/install/ubuntu/
RUN apt-get -y update && \
apt-get -y install openjdk-7-jdk make git ant && \
apt-get -y install apt-transport-https ca-certificates && \
apt-key adv \
--keyserver hkp://ha.pool.sks-keyservers.net:80 \
--recv-keys 58118E89F3A912897C070ADBF76221572C52609D && \
echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" > /etc/apt/sources.list.d/docker.list && \
apt-get -y update && apt-get -y install docker-engine=1.11.2-0~trusty
DEBIAN_FRONTEND=noninteractive apt-get -y install tzdata && \
apt-get -y install openjdk-8-jdk make git ant curl gnupg-agent && \
apt-get -y install apt-transport-https ca-certificates software-properties-common && \
update-java-alternatives -s java-1.8.0-openjdk-amd64

RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - && \
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable" && \
apt-get -y update && \
apt-get -y install docker-ce docker-ce-cli containerd.io

# Add kb-sdk src and fix CallbackServer interface
ADD . /src

# Add kb_sdk src and fix CallbackServer interface
RUN \
cd /src && \
sed -i 's/en0/eth0/' src/java/us/kbase/common/executionengine/CallbackServer.java && \
make && \
/src/entrypoint prune && rm -rf /src/.git
cd /src && \
sed -i 's/en0/eth0/' src/java/us/kbase/common/executionengine/CallbackServer.java && \
make && \
/src/entrypoint prune && rm -rf /src/.git

ENV PATH=$PATH:/src/bin

Expand Down
7 changes: 6 additions & 1 deletion RELEASE_NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ platform. Modules include all code, specification files, and
documentation needed to define and run a set of methods
in the KBase Narrative interface.

VERSION: 1.2.2 (Released 06/xx/2020)
VERSION: 1.2.3 (Released 06/2020)
------------------------------------
NEW FEATURES:
- updated kb-sdk Dockerfile to use Java 8, the most recent Docker engine, and Ubuntu 20.04.

VERSION: 1.2.2 (Released 06/2020)
------------------------------------
NEW FEATURES:
- kb-sdk version reports the build time and date of the instance
Expand Down
2 changes: 1 addition & 1 deletion src/java/us/kbase/mobu/ModuleBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class ModuleBuilder {
public static final String GLOBAL_SDK_HOME_ENV_VAR = "KB_SDK_HOME";
public static final String DEFAULT_METHOD_STORE_URL = "https://appdev.kbase.us/services/narrative_method_store/rpc";

public static final String VERSION = "1.2.2";
public static final String VERSION = "1.2.3";

public static void main(String[] args) throws Exception {

Expand Down

0 comments on commit 8fc4c60

Please sign in to comment.