Skip to content

Commit

Permalink
feature: add base image with documentation and licenses
Browse files Browse the repository at this point in the history
Previously this lived in a mono repository. For the integration with GitHub Actions it now lives in a dedicated repository.
  • Loading branch information
byCedric committed Dec 19, 2018
1 parent 906c910 commit c43e5c3
Show file tree
Hide file tree
Showing 5 changed files with 2,381 additions and 0 deletions.
17 changes: 17 additions & 0 deletions base/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM node:10-alpine

LABEL name="Expo CLI for Docker"
LABEL repository="https://github.com/bycedric/ci-expo"
LABEL homepage="https://github.com/bycedric/ci-expo/tree/master/base"
LABEL maintainer="Cedric van Putten <me+ci-expo@bycedric.com>"

RUN apk add --no-cache bash git \
&& npm install --global expo-cli@2 \
&& npm cache rm --force \
&& rm -rf ~/.npm

COPY LICENSE.md README.md THIRD_PARTY_NOTICE.md /
COPY entrypoint.sh /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]
CMD ["--help"]
21 changes: 21 additions & 0 deletions base/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# The MIT License (MIT)

Copyright (c) 2018 Cedric van Putten <me@bycedric.com>

> Permission is hereby granted, free of charge, to any person obtaining a copy
> of this software and associated documentation files (the "Software"), to deal
> in the Software without restriction, including without limitation the rights
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
> copies of the Software, and to permit persons to whom the Software is
> furnished to do so, subject to the following conditions:
>
> The above copyright notice and this permission notice shall be included in
> all copies or substantial portions of the Software.
>
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
> THE SOFTWARE.
36 changes: 36 additions & 0 deletions base/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Expo CLI for Docker

A prebuilt docker image to use the [Expo CLI](https://docs.expo.io/versions/latest/workflow/expo-cli) on Docker-based environments.
This image contains all necessary libraries to perform all commands of the CLI.

- Based on `node:10-alpine` image
- Contains globally installed `expo-cli@2`
- Contains `bash` for [Metro bundler](https://facebook.github.io/metro/)
- Contains `git` for NPM repository references

## Usage

The entry point of this image forwards to the Expo CLI itself.
With this entry point you can provide any command directly to Docker.
When nothing is provided, it will output the help information provided by the CLI.

```bash
$ docker run --rm bycedric/ci-expo
$ docker run --rm bycedric/ci-expo pubish
$ docker run --rm -ti bycedric/ci-expo login
$ docker run --rm -ti --entrypoint sh bycedric/ci-expo
```

> This image is intended to use on Docker-based CI environments, see [the Expo CI guide](https://docs.expo.io/versions/latest/guides/setting-up-continuous-integration) to get started.
## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

> This image is built on top of awesome open source libraries, see [third party licenses](THIRD_PARTY_NOTICE.md) for more information.
--- ---

<p align="center">
with :heart: <a href="https://bycedric.com" target="_blank">byCedric</a>
</p>
Loading

0 comments on commit c43e5c3

Please sign in to comment.