build: add dockerfiles for deb and rpm
This commit is contained in:
parent
433b3c4219
commit
576da85302
2
.dockerignore
Normal file
2
.dockerignore
Normal file
@ -0,0 +1,2 @@
|
||||
/_build
|
||||
/build
|
14
Dockerfile.deb
Normal file
14
Dockerfile.deb
Normal file
@ -0,0 +1,14 @@
|
||||
# docker build . -f Dockerfile.deb -t deb_builder
|
||||
|
||||
FROM ubuntu
|
||||
|
||||
RUN apt update -y && apt install -y cmake gcc g++ make
|
||||
COPY . /tmp
|
||||
RUN cd /tmp && \
|
||||
mkdir build && \
|
||||
cd build && \
|
||||
cmake .. -DLIBMBUS_PACKAGE_DEB=ON && \
|
||||
cpack .. && \
|
||||
ls -al && \
|
||||
dpkg -i *.deb
|
||||
|
14
Dockerfile.rpm
Normal file
14
Dockerfile.rpm
Normal file
@ -0,0 +1,14 @@
|
||||
# docker build . -f Dockerfile.rpm -t rpm_builder
|
||||
|
||||
FROM fedora
|
||||
|
||||
RUN dnf install -y cmake gcc g++ make rpm-build
|
||||
COPY . /tmp
|
||||
RUN cd /tmp && \
|
||||
mkdir build && \
|
||||
cd build && \
|
||||
cmake .. -DLIBMBUS_PACKAGE_RPM=ON && \
|
||||
cpack .. && \
|
||||
ls -al && \
|
||||
rpm -i *.rpm
|
||||
|
Loading…
x
Reference in New Issue
Block a user