Skip to content

Commit 04e8661

Browse files
Update publishing instructions
1 parent 43a86dc commit 04e8661

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ CiviCRM Buildkit Docker is written by [Michael McAndrew](https://twitter.com/mic
138138

139139
Contributions to this repository are very welcome. Feel free to submit a pull request for minor improvements. For larger changes, please create an issue first.
140140

141+
## See also
142+
143+
* [Publishing Dockerfiles](publish/README.md) for details on how to update the image published on https://hub.docker.com.
144+
141145
## License
142146

143147
This extension is licensed under [AGPL-3.0](LICENSE.txt).

publish/README.md

+9-5
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,14 @@ civicrm:
2121

2222
## Updating Dockerfiles
2323

24-
1. Make any necessary changes to the `templates` and `publish.php` script.
25-
2. From the `publish` directory, `composer install` (if you haven't already) and run `php publish.php`
26-
3. Check the generated directories in `publish/civicrm`
24+
1. From the `publish` directory, run `composer install`
25+
2. Make any necessary changes to the `templates` and `publish.php` script.
26+
3. Run `php publish.php`
27+
4. Check the generated directories in `publish/civicrm`
28+
5. Optionally, copy the contents of `publish/civicrm/php7.0` to `civicrm` with `cp -r publish/civicrm/php7.0/* civicrm`
2729

28-
## Updating the `:latest` (default) Dockerfile
30+
## Publishing updates to https://hub.docker.com
2931

30-
Copy the contents of `publish/civicrm/php7.0` to `civicrm` with `cp publish/civicrm/php7.0/* civicrm`.
32+
Lets say you wanted publish the image for the civicrm container you are currently using. `docker ps` will show the list of containers in use. `docker inspect --format='{{.Image}}' $CONTAINER_ID` will give you the appropriate the Image ID.
33+
34+
You can then tag the image id with michaelmcandrew/civicrm like this `docker tag $IMAGE_ID michaelmcandrew/civicrm` and publish it with `docker push michaelmcandrew/civicrm`.

0 commit comments

Comments
 (0)