From 86c010848163f3809e73088211cb62ee284a4831 Mon Sep 17 00:00:00 2001 From: Watson Date: Sat, 25 Nov 2023 15:51:22 +0900 Subject: [PATCH] WIP --- dockerfiles/arch_linux.dockerfile | 16 ++++++++++++++++ dockerfiles/docker-build.sh | 7 +++++++ dockerfiles/docker-launch.sh | 7 +++++++ dockerfiles/fedora.dockerfile | 19 +++++++++++++++++++ dockerfiles/ubuntu.dockerfile | 16 ++++++++++++++++ 5 files changed, 65 insertions(+) create mode 100644 dockerfiles/arch_linux.dockerfile create mode 100755 dockerfiles/docker-build.sh create mode 100755 dockerfiles/docker-launch.sh create mode 100644 dockerfiles/fedora.dockerfile create mode 100644 dockerfiles/ubuntu.dockerfile diff --git a/dockerfiles/arch_linux.dockerfile b/dockerfiles/arch_linux.dockerfile new file mode 100644 index 0000000..eef5e70 --- /dev/null +++ b/dockerfiles/arch_linux.dockerfile @@ -0,0 +1,16 @@ +FROM archlinux + +RUN \ + pacman --sync --noconfirm --refresh --sysupgrade && \ + pacman --sync --noconfirm \ + gcc \ + g++ \ + cmake \ + make \ + ruby \ + openssl \ + zlib \ + sudo \ + which + +WORKDIR /opt/ilios diff --git a/dockerfiles/docker-build.sh b/dockerfiles/docker-build.sh new file mode 100755 index 0000000..e92ffac --- /dev/null +++ b/dockerfiles/docker-build.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +script_dir=$(cd $(dirname ${BASH_SOURCE:-$0}); pwd) +platform="$1" +dockerfile="${platform}.dockerfile" + +docker build -t "ilios-${platform}" -f ${dockerfile} ${script_dir} diff --git a/dockerfiles/docker-launch.sh b/dockerfiles/docker-launch.sh new file mode 100755 index 0000000..7cea6f0 --- /dev/null +++ b/dockerfiles/docker-launch.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +prject_dir="$(cd $(dirname ${BASH_SOURCE:-$0}); pwd)/.." +platform="$1" +dockerfile="${platform}.dockerfile" + +docker run -v $prject_dir:/opt/ilios --rm -it "ilios-${platform}" bash diff --git a/dockerfiles/fedora.dockerfile b/dockerfiles/fedora.dockerfile new file mode 100644 index 0000000..30d7f00 --- /dev/null +++ b/dockerfiles/fedora.dockerfile @@ -0,0 +1,19 @@ +FROM fedora:latest + +RUN \ + dnf install -y \ + gcc \ + g++ \ + cmake \ + make \ + redhat-rpm-config \ + ruby-devel \ + rubygem-bundler \ + rubygem-rake \ + openssl-devel \ + zlib-devel \ + sudo \ + which && \ + dnf clean all + +WORKDIR /opt/ilios diff --git a/dockerfiles/ubuntu.dockerfile b/dockerfiles/ubuntu.dockerfile new file mode 100644 index 0000000..7b5633a --- /dev/null +++ b/dockerfiles/ubuntu.dockerfile @@ -0,0 +1,16 @@ +FROM ubuntu:latest + +RUN \ + apt-get update && \ + apt-get install -y \ + gcc \ + g++ \ + cmake \ + make \ + ruby-bundler \ + ruby-dev \ + zlib1g-dev \ + libssl-dev \ + sudo + +WORKDIR /opt/ilios