Skip to content

Commit

Permalink
Merge branch 'develop' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
bwbohl committed Jan 18, 2022
2 parents 92e0fb1 + 61a5e51 commit 0197882
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,17 @@ This dockerfile provides a build-environment for Sencha Apps. It is based on the

## Container Registry

This image is being built automatically through GitHub Actions and published in the GitHub Container Registry. This happens regularly every day and on pushed tags with a semantic version number (cf. [https://semver.org](https://semver.org)). If a pull-request is made against rhe main branch of this repository, it will be built but not published, though. Published images are available at [https://github.com/bwbohl/sencha-cmd/pkgs/container/sencha-cmd](https://github.com/bwbohl/sencha-cmd/pkgs/container/sencha-cmd).
This image is being built automatically through GitHub Actions and published on the GitHub Container Registry. This happens regularly every day and on pushed tags with a semantic version number (cf. [https://semver.org](https://semver.org)). If a pull-request is made against rhe main branch of this repository, it will be built but not published, though. Published images are available at [https://github.com/bwbohl/sencha-cmd/pkgs/container/sencha-cmd](https://github.com/bwbohl/sencha-cmd/pkgs/container/sencha-cmd).

## Running the image published on the GitHub Container Registry

## Building locally
```bash
docker run --rm -it -v /ABSOLUTE/PATH/TO/SENCHA/APP:/app --name SOME-NAME ghcr.io/bwbohl/sencha-cmd:latest
```

This will pull the pre-built image from the GitHub Container Registry and run it on your system.

## Building locally and running local image

You can clone or download this repository and then build and run the Dockerimage on your local machine. Please make sure Docker is installed on your system.

Expand Down Expand Up @@ -45,11 +52,20 @@ docker build -t sencha-cmd .
In order to run the container built according to the above instructions run the followig command, replacing SOME-NAME with the same name you used when building the container:

```bash
docker run --rm -it -v ABSOLUTE/PATH/TO/SENCHA/APP:/app --name SOME-NAME SOME-NAME
docker run --rm -it -v /ABSOLUTE/PATH/TO/SENCHA/APP:/app --name SOME-NAME SOME-NAME
```

Please make sure to replace ABSOLUTE/PATH/TO/SENCHA/APP with the filesystem path to your sencha app in order to mount it under `/app` in the container.

## Executing your sencha build

Either of the above ways of running the docker image will result in a `bash prompt` 'inside' the container image being opened on your commandline. Depending on your sencha-apps build environment you now should execute the respective build-commands. The standard sencha build command syntax is:

```bash
sencha app build [production|testing|native|package]
```

For more details also refer to the [Sencha Cmd Reference](https://docs.sencha.com/cmd/guides/advanced_cmd/cmd_reference.html#advanced_cmd-_-cmd_reference_-_sencha_app_build), [Using Cmd with Ext JS 6](https://docs.sencha.com/cmd/7.3.0/guides/extjs/cmd_app.html#extjs-_-cmd_app_-_building_your_application), or the [Sencha Cmd Docs](https://docs.sencha.com/cmd/7.3.0/index.html) in general.

## License

Expand Down

0 comments on commit 0197882

Please sign in to comment.