https://github.com/pykaldi/conda-package
https://github.com/pykaldi/conda-package
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pykaldi/conda-package
- Owner: pykaldi
- Created: 2018-08-17T23:17:33.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-12T01:38:32.000Z (over 6 years ago)
- Last Synced: 2025-07-26T08:27:31.002Z (9 months ago)
- Language: Shell
- Size: 87.6 MB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Environment definition
First, we build a docker image with CentOS 7 and all the dependencies needed to build the package:
```
docker build --tag condapkg_centos7 --build-arg CACHEBUST=$(date +%s) .
```
The build arg is used to force docker to download a new copy of this repo everytime we build the image.
# Building the conda package
The entrypoint for this docker image is `anaconda_upload.sh`. This script takes as an argument the name of the folder we want to build for and upload to anaconda. For pykaldi:
```
docker run -it --rm -e CONDA_UPLOAD_TOKEN='' condapkg_centos7 pykaldi
```
And for pykaldi-cpu
```
docker run -it --rm -e CONDA_UPLOAD_TOKEN='' condapkg_centos7 pykaldi-cpu
```
Token is the token obtained from anaconda.org
## Debugging
To debug the process, we can bypass the docker entrypoint as
```
docker run -it --rm -e CONDA_UPLOAD_TOKEN='' --entrypoint bash condapkg_centos7
```