mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 22:50:21 +00:00
prepare for docker image of ifcopenshell
This commit is contained in:
committed by
Thomas Krijnen
parent
c1b9062fa4
commit
6f802ed770
@@ -20,16 +20,15 @@ jobs:
|
|||||||
needs: activate
|
needs: activate
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
# - name: python
|
|
||||||
# run: |
|
-
|
||||||
# python3 mo.py -i data/ifc_files/3pieces_1zone-with-materials-with-sensors.ifc -o data/ifc_files/3pieces_1zone-with-materials-with-sensors
|
name: Update ubuntu
|
||||||
# cat toto.mo
|
|
||||||
- name: Update ubuntu
|
|
||||||
run: |
|
run: |
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt-get install git cmake gcc g++ libboost1.67-all-dev python3-all-dev swig libpcre3-dev libxml2-dev
|
sudo apt-get install git cmake gcc g++ libboost1.67-all-dev python3-all-dev swig libpcre3-dev libxml2-dev
|
||||||
sudo apt-get install liboce-foundation-dev liboce-modeling-dev liboce-ocaf-dev liboce-visualization-dev liboce-ocaf-lite-dev
|
sudo apt-get install liboce-foundation-dev liboce-modeling-dev liboce-ocaf-dev liboce-visualization-dev liboce-ocaf-lite-dev
|
||||||
- name: Build ibat
|
-
|
||||||
|
name: Build ifcopenshell
|
||||||
run: |
|
run: |
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
cmake \
|
cmake \
|
||||||
@@ -48,7 +47,8 @@ jobs:
|
|||||||
../cmake
|
../cmake
|
||||||
make -j10
|
make -j10
|
||||||
make install
|
make install
|
||||||
- name: Package
|
-
|
||||||
|
name: Package
|
||||||
run: |
|
run: |
|
||||||
make package
|
make package
|
||||||
working-directory: build
|
working-directory: build
|
||||||
@@ -58,7 +58,7 @@ jobs:
|
|||||||
# Artifact name
|
# Artifact name
|
||||||
name: ifcos-artifacts
|
name: ifcos-artifacts
|
||||||
# Directory containing files to upload
|
# Directory containing files to upload
|
||||||
path: build/assets/ifcos-*
|
path: build/assets/Ifc*
|
||||||
|
|
||||||
deliver:
|
deliver:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|||||||
+35
@@ -0,0 +1,35 @@
|
|||||||
|
# -*- mode: Dockerfile -*-
|
||||||
|
|
||||||
|
FROM ubuntu:focal
|
||||||
|
|
||||||
|
ARG CHANNEL
|
||||||
|
ENV CHANNEL=${CHANNEL:-latest}
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install -y \
|
||||||
|
vim \
|
||||||
|
ssh \
|
||||||
|
sudo \
|
||||||
|
wget \
|
||||||
|
software-properties-common ;\
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
RUN useradd --user-group --create-home --shell /bin/bash feelpp ;\
|
||||||
|
echo "feelpp ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
|
||||||
|
|
||||||
|
|
||||||
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
RUN echo "deb http://archive.ubuntu.com/ubuntu focal-proposed main restricted" | tee -a /etc/apt/sources.list; \
|
||||||
|
echo "deb http://archive.ubuntu.com/ubuntu focal-proposed universe" | tee -a /etc/apt/sources.list; \
|
||||||
|
echo "deb http://archive.ubuntu.com/ubuntu focal-proposed multiverse" | tee -a /etc/apt/sources.list; \
|
||||||
|
apt-get -qq update; \
|
||||||
|
apt-get -y install tzdata dos2unix rsync; \
|
||||||
|
apt-get -y install libxml2 liboce-foundation11 liboce-modeling11 liboce-ocaf11 liboce-visualization11 liboce-ocaf-lite11; \
|
||||||
|
rm -rf /var/lib/apt/lists/* ;
|
||||||
|
|
||||||
|
COPY . /home/feelpp/
|
||||||
|
RUN ls -lrtR /home/feelpp
|
||||||
|
|
||||||
|
RUN dpkg -i /home/feelpp/*.deb
|
||||||
|
|
||||||
|
USER feelpp
|
||||||
|
|
||||||
Reference in New Issue
Block a user