2021-02-18 14:51:22 +00:00
---
title: ci
---
2024-02-20 16:07:15 +00:00
<!-- DO NOT EDIT THIS FILE MANUALLY -->
<!-- Please read https://github.com/linuxserver/docker - ci/blob/master/.github/CONTRIBUTING.md -->
2019-06-03 07:14:56 +00:00
[linuxserverurl]: https://linuxserver.io
[forumurl]: https://forum.linuxserver.io
[ircurl]: https://www.linuxserver.io/irc/
[podcasturl]: https://www.linuxserver.io/podcast/
[huburl]: https://hub.docker.com/r/linuxserver/ci/
[pipelineurl]: https://github.com/linuxserver/pipeline-triggers
[][linuxserverurl]
## Contact information:-
| Type | Address/Details |
| :---: | --- |
| Discord | [Discord ](https://discord.gg/YWrKVTn ) |
| Forum | [Linuserver.io forum][forumurl] |
| IRC | freenode at `#linuxserver.io` more information at:- [IRC][ircurl]
| Podcast | Covers everything to do with getting the most from your Linux Server plus a focus on all things Docker and containerisation! [Linuxserver.io Podcast][podcasturl] |
# [linuxserver/ci][huburl]
**This container is not meant for public consumption as it is hard coded to LinuxServer endpoints for storage of resulting reports**
The purpose of this container is to accept environment variables from our build system [linuxserver/pipeline-triggers][pipelineurl] to perform basic continuous integration on the software being built.
## Usage
The container can be run locally, but it is meant to be integrated into the LinuxServer build process:
```
sudo docker run --rm -i \
-v /var/run/docker.sock:/var/run/docker.sock \
2023-04-21 20:23:26 +00:00
-v /host/path:/ci/output:rw `#Optional, will contain all the files the container creates.` \
2019-06-03 07:14:56 +00:00
-e IMAGE="linuxserver/< dockerimage > " \
2024-05-20 21:50:03 +00:00
-e TAGS="< single tag or array separated by | > " \
2019-06-03 07:14:56 +00:00
-e META_TAG=< manifest main dockerhub tag > \
-e BASE=< alpine or debian based distro > \
2020-11-01 19:15:43 +00:00
-e SECRET_KEY=< S3 secret > \
-e ACCESS_KEY=< S3 key > \
2024-05-20 21:50:03 +00:00
-e DOCKER_ENV="< optional , Array of env vars separated by | IE test = test|test2=test2 or single var . Defaults to ' ' > " \
2022-09-26 13:30:07 +00:00
-e WEB_AUTH="< optional , format user:passord . Defaults to ' user:password ' > " \
-e WEB_PATH="< optional , format / yourpath > . Defaults to ''." \
-e S3_REGION=< optional , custom S3 Region . Defaults to ' us-east-1 ' > \
-e S3_BUCKET=< optional , custom S3 Bucket . Defaults to ' ci-tests . linuxserver . io ' > \
2024-05-20 21:50:03 +00:00
-e WEB_SCREENSHOT_TIMEOUT=< optional , time in seconds before timing out trying to take a screenshot . Defaults to ' 120 ' >
-e WEB_SCREENSHOT_DELAY=< optional , time in seconds to delay before taking a screenshot after loading the web page . Defaults to ' 10 ' > \
-e SBOM_TIMEOUT=< optional , time in seconds before timing out trying to generate a SBOM . Defaults to ' 900 ' >
2022-09-26 13:30:07 +00:00
-e WEB_SCREENSHOT=< optional , set to false if not a web app . Defaults to ' false ' > \
-e PORT=< optional , port web application listens on internal docker port . Defaults to ' 80 ' > \
-e SSL=< optional , use ssl for the screenshot true / false . Defaults to ' false ' > \
2023-04-21 20:23:26 +00:00
-e CI_S6_VERBOSITY=< optional , Updates the S6_VERBOSITY env . Defaults to ' 2 ' > \
2024-05-20 21:50:03 +00:00
-e CI_LOG_LEVEL=< optional , Sets the ci logging level . Defaults to ' INFO ' > \
-e DOCKER_LOGS_TIMEOUT=< optional , How long to wait in seconds while tailing the container logs before timing out . Defaults to ' 120 ' > \
2023-04-21 20:23:26 +00:00
-e DRY_RUN=< optional , Set to ' true ' when you don ' t want to upload files to S3 when testing >
2019-06-03 07:14:56 +00:00
-t lsiodev/ci:latest \
2022-09-26 13:30:07 +00:00
python3 test_build.py
2019-06-03 07:14:56 +00:00
```
The following line is only in this repo for loop testing:
- { date: "01.01.50:", desc: "I am the release message for this internal repo." }