Commit Graph

13 Commits (88a0236ca9ce802b15b9da30a2dfc2dfff5fc42c)

Author SHA1 Message Date
Thomas E Lackey 6629017d6a
Support other webapp types (react, static). (#721)
* Support other webapp types (react, static).
2024-02-02 18:04:06 -06:00
Thomas E Lackey 62af03077f
Add deployed/error status output to the state file. (#719)
* More status info
* Up default resource limits.
* Need ps
2024-01-30 22:13:45 -06:00
Thomas E Lackey 0587813dd0
Create next.config.js if it is missing. (#701)
Smoke Test / Run basic test suite (push) Successful in 4m3s Details
Publish / Build and publish (push) Successful in 1m3s Details
Deploy Test / Run deploy test suite (push) Successful in 3m16s Details
K8s Deploy Test / Run deploy test suite (push) Failing after 3m1s Details
Webapp Test / Run webapp test suite (push) Successful in 3m13s Details
* Create next.config.js if it is missing.

* Add comment.
2024-01-15 12:12:59 -06:00
Thomas E Lackey 997496b8a5
Update script for new nextjs build output. (#691)
Smoke Test / Run basic test suite (push) Successful in 4m7s Details
Publish / Build and publish (push) Successful in 57s Details
Deploy Test / Run deploy test suite (push) Successful in 3m9s Details
K8s Deploy Test / Run deploy test suite (push) Failing after 3m5s Details
Webapp Test / Run webapp test suite (push) Failing after 2m36s Details
2023-12-14 19:47:30 -06:00
Thomas E Lackey 61f2884505
Reduce base image size (first round of improvements) (#690) 2023-12-14 17:46:03 -06:00
Thomas E Lackey 2173e7ce6a
If the next version is unsupported, print a big warning and try higher version. (#674)
Smoke Test / Run basic test suite (push) Successful in 4m9s Details
Publish / Build and publish (push) Successful in 58s Details
Deploy Test / Run deploy test suite (push) Successful in 3m47s Details
K8s Deploy Test / Run deploy test suite (push) Failing after 2m56s Details
Webapp Test / Run webapp test suite (push) Failing after 3m42s Details
2023-11-30 12:33:06 -06:00
Thomas E Lackey 2059d67dca
Add run-webapp command. (#651) 2023-11-15 10:54:27 -07:00
Thomas E Lackey 4ae4d3b61d
Print docker container logs in webapp test. (#649)
Publish / Build and publish (push) Successful in 1m15s Details
Deploy Test / Run deploy test suite (push) Successful in 3m2s Details
K8s Deploy Test / Run deploy test suite (push) Failing after 3m27s Details
Webapp Test / Run webapp test suite (push) Failing after 3m35s Details
Smoke Test / Run basic test suite (push) Successful in 4m7s Details
2023-11-14 17:30:01 -06:00
Thomas E Lackey 9687d84468
646: Add error message for webapp startup hang (#647)
This fixes three issues:

1. #644 (build output)
2. #646 (error on startup)
3. automatic env quote handling (related to 2)


For the build output we now have:

```
#################################################################

Built host container for /home/telackey/tmp/iglootools-home with tag:

    cerc/iglootools-home:local

To test locally run:

    docker run -p 3000:3000 cerc/iglootools-home:local
```

For the startup error, it was hung waiting for the "success" message from the next generate output (itself a workaround for a nextjs bug fixed by this PR we submitted: https://github.com/vercel/next.js/pull/58276).

I added a timeout which will cause it to wait up to a maximum _n_ seconds before issuing:

```
ERROR: 'npm run cerc_generate' exceeded CERC_MAX_GENERATE_TIME.
```

On the quoting itself, I plan on adding a new run-webapp command, but I realized I had a decent spot to do effect the quote replacement on-the-fly after all when I am already escaping the values for insertion/replacement into JS.

The "dequoting" can be disabled with `CERC_RETAIN_ENV_QUOTES=true`.
2023-11-14 16:07:26 -06:00
Thomas E Lackey f1f618c57a
Don't change the next.js version by default. (#640)
Publish / Build and publish (push) Successful in 58s Details
Deploy Test / Run deploy test suite (push) Successful in 2m55s Details
K8s Deploy Test / Run deploy test suite (push) Failing after 2m57s Details
Webapp Test / Run webapp test suite (push) Failing after 3m40s Details
Smoke Test / Run basic test suite (push) Successful in 3m55s Details
2023-11-13 11:56:04 -06:00
Thomas E Lackey 414b887036
Allow setting build tool (npm/yarn) and next.js version. (#639)
Publish / Build and publish (push) Successful in 1m7s Details
Deploy Test / Run deploy test suite (push) Successful in 3m3s Details
K8s Deploy Test / Run deploy test suite (push) Failing after 2m58s Details
Webapp Test / Run webapp test suite (push) Failing after 3m38s Details
Smoke Test / Run basic test suite (push) Successful in 3m48s Details
* Allow setting build tool (npm/yarn) and next.js version.
2023-11-10 17:44:25 -06:00
Thomas E Lackey 042b413598
Support the case where webpack config is already present next.config.js (#631)
Smoke Test / Run basic test suite (push) Successful in 4m16s Details
Publish / Build and publish (push) Successful in 58s Details
Deploy Test / Run deploy test suite (push) Successful in 3m19s Details
K8s Deploy Test / Run deploy test suite (push) Failing after 3m5s Details
Webapp Test / Run webapp test suite (push) Failing after 3m34s Details
* Support the case where webpack config is already present next.config.js

* Update scripts for experimental-compile/experimental-generate
2023-11-08 23:44:48 -06:00
Thomas E Lackey 660326f713
Add new build-webapp command and related scripts and containers. (#626)
Publish / Build and publish (push) Successful in 59s Details
Deploy Test / Run deploy test suite (push) Successful in 2m57s Details
Webapp Test / Run webapp test suite (push) Failing after 3m31s Details
Smoke Test / Run basic test suite (push) Successful in 4m3s Details
* Add new build-webapp command and related scripts and containers.
2023-11-07 18:15:04 -06:00