Commit Graph

30 Commits

Author SHA1 Message Date
Vity f2692a4fae Update default.conf.template - adding mime types support
Without mime types,enabled Nginx services files as text/plain. This is not supported eg. in the Firefox does not load CSS files with wrong Content-Type header. This caused stopped to work GraphQL plugin.

Signed-off-by: Vity <vity@vity.cz>
2023-05-25 11:35:26 +02:00
Patrik Oldsberg 7605c11cda bump Node.js to 16 & 18
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-11-07 11:39:08 +01:00
Philipp Hugenroth 75b5444245 Replace outdated url of Cookiecuter.dockerfile
- Clicked the URL & it was outdated due to this change: https://github.com/backstage/backstage/commit/ad9d74ff240c934ce46a474ae3f440d5f5fa493b 
- No update or verification of the actual documenation content

Signed-off-by: Philipp Hugenroth <tudi2d@users.noreply.github.com>
2022-10-17 11:49:52 +02:00
Patrik Oldsberg afb14027c2 contrib: remove jinja2 extension Dockerfile example, inline in README instead
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-08-10 15:51:34 +02:00
Patrik Oldsberg 009cffb4ee contrib: remove kubernetes example as its all documented elsewhere
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-08-10 15:51:34 +02:00
Renovate Bot a139131db9 chore(deps): update dependency alpine to v3.16
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-06-01 17:16:04 +00:00
Renovate Bot e07207baa5 chore(deps): update dependency alpine to v3.15
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-04-20 19:03:41 +00:00
Andrew Basson 1c95de39e3 chore(contrib/docker/devops): fix docs typos
Signed-off-by: Andrew Basson <andrew.basson@gmail.com>

Co-authored-by: Johan Haals <johan.haals@gmail.com>
2022-02-14 16:24:01 +01:00
Andrew Basson 3ec45a86e4 fix(docker): add deps for @vscode/sqlite3
The change to using @vscode/sqlite3 broke our deployment builds.
Adding the required build tool `g++` and linking `python` to the python3 executable.

```shell
make: Entering directory '/builds/.../node_modules/@vscode/sqlite3/build'
  ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3360000/sqlite3.c
/bin/sh: python: not found
```

Technically, the python path can be added to `.nmprc`, but added it to the docker file instead.

Signed-off-by: Andrew Basson <andrew.basson@gmail.com>
2022-02-14 11:53:13 +01:00
Otto Sichert b23bc7f9c3 Change default port of backend to 7007 due to MacOS Control Center update
Signed-off-by: Otto Sichert <git@ottosichert.de>
2021-11-18 16:45:57 +01:00
Ben Chidgey 7e2c0bc96f FIX: Stop sed escaping numbers 2 and 7 in Docker
An interesting edge case has come up whilst using BackStage.

When using the example frontend-with-nginx work to run a separate
frontend, whilst then providing an override for the
googleAnalyticsTrackingId in yaml config via
APP_CONFIG_app_googleAnalyticsTrackingId. I received an "Octal escape
sequences are not allowed in strict mode" error in the browser dev
console.

After looking into it it appears that the sed used escapes the numbers 2
and 7 if they are present in an APP_CONFIG_* ENV override value.
I happened to have both a 2 and a 7 in my GA ids, hence the edge case
part!

Of note this did not happen on my mac but it is present inside of the
nginx:mainline Docker container used in the example.

This fix simply removes the hex from the sed substitution regex and
replaces it with a single quote '

Signed-off-by: Ben Chidgey <ben@feedmypixel.com>
2021-09-23 17:34:54 +01:00
Patrik Oldsberg d0a47c8605 move to node 14 & 16
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-09-17 23:03:29 +02:00
Fredrik Adelöw ccfd99c9b1 update dockerfile instructions to build only app workspace
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-08-12 09:47:16 +02:00
Brian Fox 8bd92cff3f Update nginx deployment to use 1.19 features
- There is no need to override the `CMD` on the base image to get the custom scripts to run. This can be done simply by adding the custom configuration script to the `/docker-entrypoint.d` folder. See https://github.com/nginxinc/docker-nginx/blob/master/mainline/debian/docker-entrypoint.sh.
- With the above change made, we can now also reap the benefit of support for `envsubst` having been added in 1.19 -  as long as the config is placed in the folder `/etc/nginx/templates/`. See https://github.com/docker-library/docs/tree/master/nginx#using-environment-variables-in-nginx-configuration-new-in-119 and https://github.com/nginxinc/docker-nginx/blob/master/mainline/debian/20-envsubst-on-templates.sh for more info.

Signed-off-by: Brian Fox <brianhfox@gmail.com>
2021-04-22 17:36:05 +02:00
Fredrik Adelöw e669a8013f update the standalone frontend contribs
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-04-20 20:24:06 +02:00
Eric Swanson 3067de45a8 docs(contrib/docker/devops): improve devops containers readability
Signed-off-by: Eric Swanson <ericis@users.noreply.github.com>
2021-04-05 10:18:12 -04:00
Eric Swanson a133c273e3 chore(contrib/docker/devops): improve make targets
more holistic and consistent tasks
improved documentation

Signed-off-by: Eric Swanson <ericis@users.noreply.github.com>
2021-04-05 10:16:49 -04:00
Eric Swanson bd001c2093 fix(contrib/docker/devops): use libsecret-dev
chore: parameterize the vale url
Signed-off-by: Eric Swanson <ericis@users.noreply.github.com>
2021-04-05 10:15:24 -04:00
Eric Swanson 298ea04df6 docs(contrib): docker
Signed-off-by: Eric Swanson <ericis@users.noreply.github.com>
2021-04-05 10:14:00 -04:00
Eric Swanson 4d4183941f chore(devops): move container example under docker dir
Signed-off-by: Eric Swanson <ericis@users.noreply.github.com>
2021-04-02 16:29:37 -04:00
Vinay P 673c4f7d5a Allow overriding cookiecutter's docker imageName
.. to allow running custom-built images that have
cookiecutter installed alongwith extensions, for
example.

https://cookiecutter.readthedocs.io/en/1.7.2/advanced/template_extensions.html

related to:
https://github.com/backstage/backstage/pull/4956#discussion_r596846365

Signed-off-by: Vinay P <mail@vinayvinay.com>
2021-03-25 12:12:36 +00:00
Vinay P 3105b46afa Document use of Jinja2 extensions with fetch:cookiecutter
Signed-off-by: Vinay P <mail@vinayvinay.com>
2021-03-25 12:12:17 +00:00
Himanshu Mishra cca03162bc chore: Remove yarn docker-build:app command and related docs 2021-01-17 21:53:37 +01:00
Himanshu Mishra 9560a1a4ab chore: Move Dockerfile at root to contrib/
In deployment docs https://backstage.io/docs/getting-started/deployment-other, we suggest doing a `yarn docker-build` and I thought the root Dockerfile was being used to build the image. Hence I modified it for some needs, but no changes were reflected. Later I found that `yarn docker-build` uses the `Dockerfile` present inside `packages/backend` https://github.com/backstage/backstage/blob/master/packages/backend/Dockerfile. So, I think the Dockerfile at the root is a bit misleading, and should be moved to contrib.

Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
2021-01-13 15:24:22 +01:00
David Tuite 478e17bcf4 Apply development config in Helm charts (#3161)
This isn't the best fix because we're still using NODE_ENV=development
in a "production" environment. Ideally we would stop doing this.

Right now, the Helm charts are broken because they deploy the backend
straight into Error state.. This change will unbreak them for the
moment.
2020-11-02 09:05:57 +01:00
Iain Billett 2476e3fa25 Add Dockerfile for helm chart
Add a Dockerfile which can be used to build an image that the helm
charts will use as default. These images require mkdocs and cookiecutter
to be installed (for now) in order to work around the docker requirement
in kubernetes.
2020-10-08 15:36:08 +01:00
Tim Jacomb f77333c351 Update docker base image to buster for node 2020-09-21 11:01:22 +01:00
Alisina Bahadori 357a99a20b Fix Dockerfile comments and README instructions 2020-09-20 23:32:17 +03:30
Alisina Bahadori 5d8afa9bc6 Fix prettier on multi-stage-fontend README.md 2020-09-20 17:57:36 +04:30
Alisina Bahadori 0cfe7461dd Move standalone.Dockerfile to contrib directory 2020-09-20 17:36:19 +04:30