-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: I241d260209090dc4a01a96449657b270649d6643 Signed-off-by: Adam Stankiewicz <sheerun@sher.pl>
- Loading branch information
Showing
4 changed files
with
49 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.git | ||
Dockerfile | ||
Dockerfile.base | ||
.dockerignore | ||
build | ||
|
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 @@ | ||
# Please build bmcweb-base first with | ||
# docker build --no-cache --force-rm -t bmcweb-base -f Dockerfile.base . | ||
FROM bmcweb-base | ||
|
||
ADD . /source | ||
|
||
RUN cmake --build . | ||
|
||
RUN mkdir -p /usr/share/www | ||
|
||
CMD ["/build/bmcweb"] |
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,15 @@ | ||
FROM ubuntu:20.04 | ||
|
||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive \ | ||
apt-get install -y libpam0g-dev libssl-dev zlib1g-dev pkg-config xxd cmake \ | ||
libgtest-dev libgmock-dev ninja-build python3 autoconf-archive autoconf \ | ||
build-essential git libsystemd-dev systemd python3-wheel python3-pip \ | ||
python3-yaml python3-mako python3-inflection python3-setuptools && \ | ||
pip3 install meson | ||
|
||
ADD . /source | ||
|
||
RUN mkdir -p /build && cd /build && cmake -DYOCTO_DEPENDENCIES=OFF /source && \ | ||
cmake --build . && rm -rf /source | ||
|
||
WORKDIR /build |
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,17 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
if ! command -v docker > /dev/null; then | ||
echo "Please install docker from https://www.docker.com/products/docker-desktop" | ||
exit 1 | ||
fi | ||
|
||
docker inspect bmcweb-base > /dev/null || | ||
docker build --no-cache --force-rm -t bmcweb-base -f Dockerfile.base . | ||
|
||
docker build -t bmcweb . | ||
|
||
mkdir -p build | ||
|
||
docker run -v $PWD:/app -it bmcweb cp -r /build/bmcweb /build/webtest /app/build |