You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+4
Original file line number
Diff line number
Diff line change
@@ -138,6 +138,10 @@ CiviCRM Buildkit Docker is written by [Michael McAndrew](https://twitter.com/mic
138
138
139
139
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.
140
140
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
+
141
145
## License
142
146
143
147
This extension is licensed under [AGPL-3.0](LICENSE.txt).
Copy file name to clipboardexpand all lines: publish/README.md
+9-5
Original file line number
Diff line number
Diff line change
@@ -21,10 +21,14 @@ civicrm:
21
21
22
22
## Updating Dockerfiles
23
23
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`
27
29
28
-
## Updating the `:latest` (default) Dockerfile
30
+
## Publishing updates to https://hub.docker.com
29
31
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