-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
created an ubuntu Eclipse CDT development container for C++.
- Loading branch information
Showing
8 changed files
with
130 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
FROM ubuntu:xenial as build | ||
|
||
RUN apt-get -y update && apt-get install -y apt-utils && \ | ||
apt-get install -y -qq -o=Dpkg::Use-Pty=0 build-essential gfortran gdb cmake expect | ||
|
||
RUN apt-get install -y software-properties-common python-software-properties | ||
|
||
RUN add-apt-repository ppa:ubuntu-desktop/ubuntu-make | ||
RUN apt -y update | ||
RUN apt-get install -y ubuntu-make | ||
|
||
#RUN umake -v ide eclipse-cpp | ||
RUN export COMMAND="spawn umake ide eclipse-cpp;" \ | ||
SLEEP="sleep 3;" \ | ||
EXPECT_PROMPT="expect -re \"Choose installation path: /root/.local/share/umake/ide/eclipse-cpp\";" \ | ||
SEND="send \"\r\n\";" \ | ||
TIMEOUT="set timeout -1;" \ | ||
EXPECT_DONE="expect -re \"Installation done\";" && \ | ||
expect -c "$COMMAND $SLEEP $EXPECT_PROMPT $SEND $TIMEOUT $EXPECT_DONE" | ||
|
||
|
||
RUN apt-get install -y -qq -o=Dpkg::Use-Pty=0 zlib1g-dev libhdf5-dev libcurl4-openssl-dev libboost-dev | ||
|
||
|
||
# RUN useradd -ms /bin/bash developer | ||
# USER developer | ||
# ENV HOME /home/developer | ||
WORKDIR /workspace/build-docker | ||
|
||
VOLUME /workspace | ||
|
||
CMD /root/.local/share/umake/ide/eclipse-cpp/eclipse -data /workspace | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
DIR="$(cd "$(dirname "$0")"; pwd)" | ||
echo "dir is $DIR" | ||
|
||
cd $DIR | ||
|
||
image_name="localhost:5000/vcell-solvers-ide:dev" | ||
|
||
docker build -f ./Dockerfile-ide --tag $image_name . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
|
||
mkdir -p /workspace/vcell-solvers-build | ||
cd /workspace/vcell-solvers-build | ||
|
||
cmake \ | ||
-G "Eclipse CDT4 - Unix Makefiles" \ | ||
-DCMAKE_BUILD_TYPE="Debug" \ | ||
-DOPTION_TARGET_MESSAGING=ON \ | ||
-DOPTION_TARGET_PARALLEL=OFF \ | ||
-DOPTION_TARGET_CHOMBO2D_SOLVER=OFF \ | ||
-DOPTION_TARGET_CHOMBO3D_SOLVER=OFF \ | ||
-DOPTION_TARGET_SMOLDYN_SOLVER=OFF \ | ||
-DOPTION_TARGET_FV_SOLVER=ON \ | ||
-DOPTION_TARGET_STOCHASTIC_SOLVER=OFF \ | ||
-DOPTION_TARGET_NFSIM_SOLVER=OFF \ | ||
-DOPTION_TARGET_MOVINGBOUNDARY_SOLVER=OFF \ | ||
-DOPTION_TARGET_SUNDIALS_SOLVER=OFF \ | ||
-DOPTION_TARGET_HY3S_SOLVERS=OFF \ | ||
../vcell-solvers | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/env bash | ||
|
||
THIS_DIR="$(cd "$(dirname "$0")"; pwd)" | ||
PROJECT_DIR="$(cd "$(dirname "$0")"; cd ..; pwd)" | ||
WORKSPACE_DIR="$(cd "$(dirname "$0")"; cd ..; cd ..; pwd)" | ||
echo "dir is $THIS_DIR" | ||
echo "projectDir is $PROJECT_DIR" | ||
echo "workspaceDir is $WORKSPACE_DIR" | ||
|
||
|
||
# https://cntnr.io/running-guis-with-docker-on-mac-os-x-a14df6a76efc | ||
# https://blog.alexellis.io/linux-desktop-on-mac/ | ||
|
||
# > brew install socat | ||
# > socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\" | ||
|
||
# to test ability to run an X program: | ||
# docker run -e DISPLAY=$IP gns3/xeyes | ||
|
||
# (socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\") & | ||
|
||
IP=$(ifconfig en0 | grep inet | awk '$1=="inet" {print $2}') | ||
|
||
image_name="localhost:5000/vcell-solvers-ide:dev" | ||
WORKSPACE_DIR=/Users/schaff/Documents/workspace-modular | ||
ECLIPSE="/root/.local/share/umake/ide/eclipse-cpp/eclipse" | ||
|
||
docker run -it \ | ||
-v "$WORKSPACE_DIR:/workspace" -e DISPLAY=$IP:0 $image_name \ | ||
$ECLIPSE -data /workspace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/env bash | ||
|
||
THIS_DIR="$(cd "$(dirname "$0")"; pwd)" | ||
PROJECT_DIR="$(cd "$(dirname "$0")"; cd ..; pwd)" | ||
WORKSPACE_DIR="$(cd "$(dirname "$0")"; cd ..; cd ..; pwd)" | ||
echo "dir is $THIS_DIR" | ||
echo "projectDir is $PROJECT_DIR" | ||
echo "workspaceDir is $WORKSPACE_DIR" | ||
|
||
|
||
# https://cntnr.io/running-guis-with-docker-on-mac-os-x-a14df6a76efc | ||
# https://blog.alexellis.io/linux-desktop-on-mac/ | ||
|
||
# > brew install socat | ||
# > socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\" | ||
|
||
# to test ability to run an X program: | ||
# docker run -e DISPLAY=$IP gns3/xeyes | ||
|
||
# (socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\") & | ||
|
||
IP=$(ifconfig en0 | grep inet | awk '$1=="inet" {print $2}') | ||
|
||
image_name="localhost:5000/vcell-solvers-ide:dev" | ||
|
||
echo docker run -it \ | ||
-v "$WORKSPACE_DIR:/workspace" -e DISPLAY=$IP:0 $image_name /bin/bash |