generated from moja-global/Import-Me
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish separate GCBM build under flint.gcbm (#107)
- Loading branch information
Showing
3 changed files
with
75 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
FROM ghcr.io/moja-global/flint.core:master | ||
|
||
WORKDIR $ROOTDIR/src | ||
|
||
# moja.canada requires libpqxx. | ||
RUN git clone --recursive https://github.com/jtv/libpqxx.git \ | ||
&& mkdir libpqxx/build \ | ||
&& cd libpqxx/build \ | ||
&& cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE \ | ||
-DCMAKE_INSTALL_PREFIX=/usr/local \ | ||
-DSKIP_BUILD_TEST=ON \ | ||
-FSKIP_PQXX_STATIC=ON .. \ | ||
-DCMAKE_CXX_FLAGS=-fPIC \ | ||
-DPostgreSQL_TYPE_INCLUDE_DIR=/usr/include/postgresql \ | ||
&& make --quiet -j $NUM_CPU install/strip \ | ||
&& make clean \ | ||
&& cd $ROOTDIR/src | ||
|
||
# moja.canada | ||
RUN git clone -b develop https://github.com/moja-global/moja.canada \ | ||
&& mkdir -p moja.canada/Source/build \ | ||
&& cd moja.canada/Source/build \ | ||
&& cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE \ | ||
-DCMAKE_INSTALL_PREFIX=$ROOTDIR \ | ||
-DENABLE_TESTS:BOOL=OFF \ | ||
-DPostgreSQL_TYPE_INCLUDE_DIR=/usr/include/postgresql .. \ | ||
&& make --quiet -s -j $NUM_CPU \ | ||
&& make --quiet install \ | ||
&& make clean \ | ||
&& cd $ROOTDIR/src | ||
|
||
RUN mkdir -p /opt/gcbm | ||
RUN ln -t /opt/gcbm /usr/local/lib/lib* | ||
RUN ln -t /opt/gcbm /usr/local/bin/moja.cli |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM ghcr.io/moja-global/moja.canada:develop | ||
FROM ghcr.io/moja-global/flint.gcbm:master | ||
|
||
WORKDIR /app | ||
|
||
|