From 8b21fcbee589db1c1204ba51fe40fd004fdb57c5 Mon Sep 17 00:00:00 2001 From: Wei Ouyang Date: Tue, 15 Sep 2020 22:58:14 +0200 Subject: [PATCH 1/3] Add Dockerfile --- Dockerfile | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..33d54d8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,48 @@ +FROM ubuntu:18.04 + +# System packages +RUN apt-get update && apt-get install -y \ + bzip2 \ + bc \ + build-essential \ + cmake \ + curl \ + g++ \ + gfortran \ + libboost-dev \ + libboost-thread-dev \ + libtool \ + autoconf \ + automake \ + git \ + pkg-config \ + software-properties-common \ + unzip \ + wget \ + && \ + apt-get clean && \ + apt-get autoremove && \ + rm -rf /var/lib/apt/lists/* +RUN addgroup --gid 1001 python && \ + useradd --uid 1001 --gid 1001 python + +RUN git clone https://github.com/micro-manager/micro-manager.git +RUN cd micro-manager && \ + ./autogen.sh && \ + ./configure --without-java && \ + make && \ + # will be installed to /usr/local/lib/micro-manager/ + make install +ENV MMCORE_PATH=/usr/local/lib/micro-manager/ +ENV MMCONFIG_DEMO_PATH=/micro-manager/bindist/any-platform/MMConfig_demo.cfg + +# Install miniconda to /miniconda +RUN curl -LO https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh +RUN bash Miniconda3-latest-Linux-x86_64.sh -p /miniconda -b +RUN rm Miniconda3-latest-Linux-x86_64.sh +ENV PATH=/miniconda/bin:${PATH} + +RUN conda update -y conda && \ + conda install -y python=3.7.6 numpy && \ + pip install --upgrade pip && \ + pip install pymmcore From b849432814b5380a93ca7dc67d34a5506eb68954 Mon Sep 17 00:00:00 2001 From: "Mark A. Tsuchida" Date: Thu, 17 Sep 2020 13:42:59 -0500 Subject: [PATCH 2/3] Fix indents --- Dockerfile | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/Dockerfile b/Dockerfile index 33d54d8..8c217ff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,26 +3,26 @@ FROM ubuntu:18.04 # System packages RUN apt-get update && apt-get install -y \ bzip2 \ - bc \ - build-essential \ - cmake \ - curl \ - g++ \ - gfortran \ + bc \ + build-essential \ + cmake \ + curl \ + g++ \ + gfortran \ libboost-dev \ libboost-thread-dev \ libtool \ autoconf \ automake \ - git \ - pkg-config \ - software-properties-common \ - unzip \ - wget \ - && \ - apt-get clean && \ - apt-get autoremove && \ - rm -rf /var/lib/apt/lists/* + git \ + pkg-config \ + software-properties-common \ + unzip \ + wget \ + && \ + apt-get clean && \ + apt-get autoremove && \ + rm -rf /var/lib/apt/lists/* RUN addgroup --gid 1001 python && \ useradd --uid 1001 --gid 1001 python @@ -44,5 +44,5 @@ ENV PATH=/miniconda/bin:${PATH} RUN conda update -y conda && \ conda install -y python=3.7.6 numpy && \ - pip install --upgrade pip && \ - pip install pymmcore + pip install --upgrade pip && \ + pip install pymmcore From f25aad9a117932ea2df1ec111e03100779b3d4a3 Mon Sep 17 00:00:00 2001 From: "Mark A. Tsuchida" Date: Thu, 17 Sep 2020 13:46:29 -0500 Subject: [PATCH 3/3] Add comment --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 8c217ff..9776ac5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,6 @@ +# This dockerfile creates a minimal pymmcore image for demonstration purposes +# (for example, DemoCamera should work). + FROM ubuntu:18.04 # System packages