Skip to content

Commit

Permalink
Adding CMake to PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
AnHeuermann committed Aug 3, 2023
1 parent 2890755 commit 1b61d01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ RUN wget https://raw.githubusercontent.com/OpenModelica/OpenModelica-doc/master/
RUN wget cmake.org/files/v3.17/cmake-3.17.2-Linux-x86_64.sh \
&& mkdir -p /opt/cmake-3.17.2 \
&& sh cmake-3.17.2-Linux-x86_64.sh --prefix=/opt/cmake-3.17.2 --skip-license \
&& rm cmake-3.17.2-Linux-x86_64.sh
&& rm cmake-3.17.2-Linux-x86_64.sh \
&& apt-get remove -qy cmake cmake-data
ENV PATH="$PATH:/opt/cmake-3.17.2/bin"

# Clean
RUN rm -rf /var/lib/apt/lists/* \
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# OpenModelica build-deps Docker Image

[![Build v1.16-cmake](https://github.com/AnHeuermann/build-deps/actions/workflows/build.yml/badge.svg?branch=releases%2Fv1.16-cmake)](https://github.com/AnHeuermann/build-deps/actions/workflows/build.yml)
[![Publish v1.16-cmake](https://github.com/AnHeuermann/build-deps/actions/workflows/publish.yml/badge.svg?branch=releases%2Fv1.16-cmake)](https://github.com/AnHeuermann/build-deps/actions/workflows/publish.yml)

The Docker image used to build and deploy
[OpenModelica](https://github.com/OpenModelica/OpenModelica) with
Expand All @@ -11,7 +10,7 @@ Jenkins[https://test.openmodelica.org/jenkins/].

```bash
export TAG=v1.16.3-cmake
docker build --pull --no-cache --tag build-deps:$(TAG) .
docker build --pull --no-cache --tag build-deps:$TAG .
```

## Upload
Expand All @@ -26,7 +25,7 @@ Otherwise run:
export REGISTRY=anheuermann
export TAG=v1.16.3-cmake
docker login
docker image tag build-deps:$(VERSION) $(REGISTRY)/build-deps:$(TAG)
docker image tag build-deps:$(VERSION) $(REGISTRY)/build-deps:$TAG
```

## License
Expand Down

0 comments on commit 1b61d01

Please sign in to comment.