Wykres commitów

55 Commity (c0675bc90f45b914a4dfb6796dd3f35d96d09436)

Autor SHA1 Wiadomość Data
Thibaud Colas c0675bc90f Ignore .vscode folder 2022-02-04 10:50:36 +00:00
Thibaud Colas bea200be96 Switch emails to wagtail.org 2022-02-04 10:49:34 +00:00
Thibaud Colas 99699d0149
Upgrade to Node 16 (#39) 2022-02-01 20:58:29 +00:00
Sævar Öfjörð Magnússon 307e00729d
Update README.md 2022-01-19 15:39:31 +00:00
Sævar Öfjörð Magnússon 2a7b0dd4cc
Update README.md 2022-01-18 15:12:14 +00:00
Sævar Öfjörð Magnússon a0e731f937
Improved the speed of the frontend build. (#38) 2022-01-18 13:19:52 +00:00
Sævar Öfjörð Magnússon a0d0721734
Update readme with info on how to run tests with correct working directory (#37) 2022-01-18 10:21:23 +00:00
Sævar Öfjörð Magnússon 9b6e9c9878
Enclose strings in quotes to avoid syntax errors in YAML parsing, specifically the error yaml: line 20: mapping values are not allowed in this context (#33) 2021-09-03 23:23:35 +00:00
Tibor Leupold 121d6fc71e
Update Dockerfile for Debian Bullseye release (#32)
* Update Dockerfile for Debian Bullseye release

The previously used base image `python:3.7` was changed to now use
Debian Bullseye. This lead to installation issues of `libenchant-dev`
(see #31).

This is now fixed by upgrading the installation command for `libenchant`
to `libenchant-2-dev` (see also https://pkgs.org/search/?q=LIBENCHANT).

Additionally, to avoid similar issues in the future, the Debian version
of the base image is now defined in the `Dockerfile`.

* Upgrade Python base image from 3.7 to 3.8
2021-09-03 23:16:43 +00:00
LB (Ben Johnston) f7b8fc9f76
Update Dockerfile.frontend to Node v14 (#30)
- relates to https://github.com/wagtail/wagtail/issues/7473
2021-09-04 00:00:07 +02:00
Naomi I. Morduch Toubman b6faf81f89
Add documentation re how to run tests (#29) 2021-07-13 19:00:38 +00:00
Tibor Leupold 6c2e500273
Prevent automatic container restarts (#28)
Automatic container restarts are not necessary in a development context.

Also, working on multiple projects with these settings only leads to
an extreme load on the dev machine, because all the containers from
all the projects are starting when the Docker engine is started.
2021-07-01 15:59:27 +00:00
sankalpmukim 572067059f
Update cloning instructions in README to use HTTPS instead of SSH (#27)
Now git clone using the recommended http method rather than the earlier git@github method.
2021-04-12 15:57:29 -04:00
Thibaud Colas 1bae2678b1
Fix typo 2021-03-04 22:08:11 +00:00
Thibaud Colas 69e12dad54
Fix typo in README 2021-03-04 21:58:52 +00:00
Cynthia Kiser 230934edaf Install postgresql-client so we can use 'manage.py dbshell' 2021-02-04 13:20:19 -08:00
Cynthia Kiser 09ae6c40a9
Merge pull request #19 from thibaudcolas/chore/frontend-commands
Clean up front-end container Dockerfile
2021-02-03 16:42:32 -08:00
Thibaud Colas 30ada01a13 Clean up front-end container Dockerfile 2020-10-23 21:21:46 +01:00
Cynthia Kiser 8b8d78f3cc
Automate setting up bakerydemo to use the Postgres db in services (#15)
* Update the README with instructions on getting bakerydemo to use the PostgreSQL database from the adjacent container
* Corrected formatting in README
* Automated setting up bakerydemo to use the postgres service from our docker-compose
2020-10-21 17:25:48 +00:00
Robert Rollins 43782a1533
Reworked the database and Wagtail installation setup (#18)
* Broke out the initial database stuff into a separate one-time script.

Also enhanced the .dockerignore file to make image builds a lot faster, and added .idea to the .gitignire, so that PyCharm projects won't get added to the repo.

* Reworked the database and Wagtail installation setup

In order to improve the development experience while using docker-wagtail-develop, I reorganized how the database setup is done, and how and when Wagtail gets installed into the python environment inside the docker container. Plus a few other changes.

1. Database. The migration and initial data load steps are now done once, by the user, during initial setup (setup-sb.sh), rather than happening at the start of every `docker-compose up`. This is possible because the postgres data is already being stored in a Docker Volume, so it persists across container executions.

2. Wagtail is now installed into the 'web' docker container by the Dockerfile, rather than docker-compose. This lets Docker skip that step if nothing has changed in Wagtail since the last build (admittedly, not super common, given that this project is for developing Wagtail), and generally makes the whole process a lot cleaner.

3. I added a bunch of stuff to .dockerignore, which significantly cuts down on the 'web' and 'frontend' images filesizes and build times.

4. I gave each of the three containers specific names, so that they can be more easily executed into for things like running manage.py commands or other OS stuff. This resulted in the connect string for the postgres DB needing to be tweaked.

5. I changed the 'frontend' container's copy command for the node_modules folder to use the -u flag, which allows cp to skip any files that haven't changed since the last time the copy was run. This *dramatically* speeds up the startup of the 'frontend' container on all but the very first execution (which does the initial copy into the host's wagtail folder).

I really wanted to find a way to put node_modules into a Docker Volume, but since you can't write to Volumes during the image build process, that unfortunately negates any value-add that we might have gotten from their use in this case.
2020-10-09 16:58:58 +00:00
Sævar Öfjörð Magnússon f473083142
Merge pull request #16 from marteinn/additional_linux_fixes
Drop unnecessary user from web container
2020-10-07 15:06:16 +00:00
Sævar Öfjörð Magnússon 7a916ea0f8
Merge pull request #17 from marteinn/add_update_command
Add command for updating repos
2020-10-06 10:17:12 +00:00
Martin Sandström e80dc4eb66 Add command for updating repos 2020-08-07 06:49:12 +02:00
Martin Sandström 12add8c227 Drop unecessary user from web container 2020-08-06 06:42:11 +02:00
Cynthia Kiser 1d77f71861
Merge pull request #14 from wagtail/docker-compose-improvements
Add a volume for Postgres data
2020-08-01 10:11:21 -07:00
Dan Braghis 44d13d910a Add a volume for Postgres data 2020-08-01 17:29:58 +01:00
Sævar Öfjörð Magnússon 82d03eb272
Merge pull request #13 from lb-/lb--patch-2
Update .gitignore
2020-07-16 22:01:30 +00:00
LB (Ben Johnston) 7aabe5c4fc
Update .gitignore
add .DS_Store (macOS)
2020-07-15 16:31:32 +10:00
Sævar Öfjörð Magnússon 10d4d0e762
Merge pull request #12 from lb-/lb--patch-1
Update Readme - add section for frontend bash
2020-07-12 20:27:17 +00:00
LB (Ben Johnston) b4193361f6
Update Readme - add section for frontend bash 2020-07-12 19:24:05 +10:00
LB (Ben Johnston) 659947337c
remove node-sass rebuild from Dockerfile.frontend (#11)
* native modules no longer used for sass so no rebuild required (adoption of `dart-sass`)
* https://github.com/wagtail/wagtail/pull/6033
* 7eeb44ad04
2020-05-19 11:30:52 +02:00
Sævar Öfjörð Magnússon 27840f970d
Update Readme with Linux support 2020-05-14 20:11:22 +00:00
Sævar Öfjörð Magnússon 8624e74862
Merge pull request #10 from marteinn/add_linux_support
Add Linux support
2020-05-14 20:09:14 +00:00
Martin Sandström cbee78039c Add separate docker-compose conf where user is set 2020-05-14 21:26:10 +02:00
Jim Jazwiecki eef59861b5 Default to Node 10 2020-05-01 09:04:27 +01:00
Sævar Öfjörð Magnússon b90ce8b592
Merge pull request #8 from wagtail/readme-repo-update
Update README reference to new git repo
2020-04-06 16:46:03 +00:00
Tom Dyson bd6f19f5cb
Update README reference to new git repo 2020-04-06 17:04:51 +01:00
Sævar Öfjörð Magnússon b01f052f19
Merge pull request #7 from rinti/patch-1
Correct a number in the readme file
2020-02-15 11:37:48 +00:00
Andreas Bernacca c25a6e0d3f
Correct a number in the readme file 2020-02-15 12:23:01 +01:00
Sævar Öfjörð Magnússon 4d6534dc56
Merge pull request #6 from wagtail/fix-issue-5
Improve readme with reference to docker-compose
2020-02-12 17:43:33 +00:00
Sævar Öfjörð Magnússon f490824336 Improve readme with reference to docker-compose exec instead of docker exec 2020-02-12 17:41:39 +00:00
Sævar Öfjörð Magnússon 76121d95c5 Improve readme 2020-01-24 15:44:38 +00:00
Sævar Öfjörð Magnússon bf2ed1e673 Todo 2020-01-24 15:43:25 +00:00
Sævar Öfjörð Magnússon 18263b5fa9 Remove unused file 2020-01-24 15:43:20 +00:00
Sævar Öfjörð Magnússon 13f31a490c Readme 2020-01-24 15:26:51 +00:00
Esper Kuijs e97a344e16 Set volume mount mode to delegated
This speeds up the js/css compiletime about 8 times on osx, see https://engageinteractive.co.uk/blog/making-docker-faster-on-mac
2020-01-24 14:45:06 +00:00
Esper Kuijs ac29388bd1 Build node_modules in image for faster startup 2020-01-24 12:53:26 +00:00
Esper Kuijs 9df55fcc9a Merge branch 'add-frontend-service' 2020-01-24 12:15:10 +00:00
Esper Kuijs 017c1f7070 Initial working frontend service 2020-01-24 12:14:15 +00:00
Sævar Öfjörð Magnússon fa456da724 More setup 2020-01-24 11:36:33 +00:00