Copy debian packages into gitlab-pages
This commit is contained in:
parent
78c6cbae68
commit
804281b206
@ -43,6 +43,9 @@ stages:
|
|||||||
# build with odoc
|
# build with odoc
|
||||||
- dune build @doc
|
- dune build @doc
|
||||||
|
|
||||||
|
# copy .deb packages into website
|
||||||
|
- find dist -name \*.deb -exec sh -c 'cp {} gitlab-pages/website/static/deb/ligo_$(basename $(dirname {})).deb' \;
|
||||||
|
|
||||||
# npm
|
# npm
|
||||||
- cd gitlab-pages/website
|
- cd gitlab-pages/website
|
||||||
- npm install
|
- npm install
|
||||||
|
@ -3,7 +3,7 @@ id: installation
|
|||||||
title: Installation
|
title: Installation
|
||||||
---
|
---
|
||||||
|
|
||||||
There are currently two ways to get started with Ligo, both of those will allow you to use the Ligo CLI with your contracts. You can choose to use either a Docker image, or to compile & build the Ligo CLI yourself.
|
There are currently two ways to get started with Ligo. You can choose to either use a Docker image, or to install packages for your Debian Linux distribution.
|
||||||
|
|
||||||
## Dockerized installation (recommended)
|
## Dockerized installation (recommended)
|
||||||
|
|
||||||
@ -38,6 +38,12 @@ ligo --help
|
|||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Manual installation (advanced)
|
## Debian Linux package installation
|
||||||
|
|
||||||
|
We have produced .deb packages for a few Debian Linuxes. They will install a global `ligo` executable. You can install them in the usual way.
|
||||||
|
|
||||||
|
- [Ubuntu 18.04](/deb/ligo_ubuntu-18.04.deb)
|
||||||
|
- [Ubuntu 19.04](/deb/ligo_ubuntu-19.04.deb)
|
||||||
|
- [Debian 9](/deb/ligo_debian-9.deb)
|
||||||
|
- [Debian 10](/deb/ligo_debian-10.deb)
|
||||||
|
|
||||||
For now, please refer to the steps described in the [Dockerfile](https://gitlab.com/ligolang/ligo/blob/master/docker/Dockerfile).
|
|
1
gitlab-pages/website/static/deb/.gitignore
vendored
Normal file
1
gitlab-pages/website/static/deb/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
*
|
@ -14,7 +14,7 @@ if [ -n "$dockerfile" ]; then
|
|||||||
docker build --build-arg targetBuildImage="$tag_build" --build-arg version="$version" -t "$tag_package" -f "$dockerfile" .
|
docker build --build-arg targetBuildImage="$tag_build" --build-arg version="$version" -t "$tag_package" -f "$dockerfile" .
|
||||||
# Copy the package to host's (our own) file system
|
# Copy the package to host's (our own) file system
|
||||||
mkdir -p "$PWD/dist/package/$target"
|
mkdir -p "$PWD/dist/package/$target"
|
||||||
docker run -v $PWD:$PWD "$tag_package" cp -r /package/dist/. "$PWD/dist/package/$target"
|
docker run --entrypoint '/bin/sh' -v $PWD:$PWD "$tag_package" -c "cp -r /package/dist/. $PWD/dist/package/$target"
|
||||||
else
|
else
|
||||||
echo "Dockerfile not found for target: $target"
|
echo "Dockerfile not found for target: $target"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user