Commit graph

77 commits

Author SHA1 Message Date
Tom Hughes
9a259b5fcd Merge remote-tracking branch 'upstream/pull/4484' 2024-01-17 18:33:02 +00:00
Andy Allan
4303829028 Update minimum PostgreSQL version to 13 in documentatation
Refs #4405
2024-01-17 16:28:04 +00:00
Andy Allan
9c3ab20fba Update package exclusion list when using rbenv
The package lists elsewhere were simplified in d6d16dedb9
2024-01-10 17:53:21 +00:00
Andy Allan
9d13066c4c Update minimum postgresql version
We started requiring postgresql 12 after the migrations in #4319
2023-12-20 15:30:16 +00:00
Tom Hughes
f37ea2fae3 Update to rails 7.1.1 2023-10-18 18:26:13 +01:00
Andy Allan
d6d16dedb9 Simplify ruby installations
Refs #4048

* We don't currently need a specific version suffix on the package names,
  since ubuntu only ships with one ruby version (and newer versions on
  e.g. 23.04 are fine).
* We don't need to explicitly install libruby, since it's pulled in by
  other packages as required.
* Ubuntu again ships a decent enough version of bundler for our needs,
  so we don't need to install it via rubygems.
2023-05-31 17:55:53 +01:00
Andy Allan
75e3227508 Update vagrant provisioning for 22.04
Refs #4048

* geckodriver is now inside the firefox snap package
* the yarnpkg package is completely broken, see
  2003697
2023-05-31 15:36:13 +01:00
Tom Hughes
302a53d767 Update minimum ruby version to 3.0 2023-05-16 19:02:29 +01:00
Andy Allan
f4651f68e2 Remove apache packages from install instructions and vagrant provisioning
These are unnecessary for development environments, and are not used in
the Fedora instructions nor in the Dockerfile.
2023-04-26 14:23:57 +01:00
Andy Allan
581bf517cb Use bin/yarn consistently for installations
Since rails 7, the `rails yarn:install` command no longer uses
bin/yarn and so a) doesn't detect yarn binaries named "yarnpkg"
(e.g. Ubuntu) and b) doesn't allow us to pass any flags to yarn,
(e.g. "--ignore-engines").

Since we want to avoid making the installation more difficult (by
e.g. installing yarn from other sources, or requiring particular
node versions) we can instead just use our existing bin/yarn script.

The reason Dockerfile did its own thing was to avoid pulling in
big chunks of rails, but bin/yarn is a standalone ruby script.

Fixes #3579
2023-01-11 13:58:54 +00:00
Tom Hughes
fb9219a52f Use rails instead of rake 2022-12-21 17:09:21 +00:00
Andy Allan
479c1575e1 Remove tile_for_point SQL functions
This removes both the pl/pgsql version and the shared library version
of the `tile_for_point` SQL function. This function was only used in some
old migrations, and is not required for production usage.

Removing this function simplifies the installation and configuration for
new developers.

These SQL functions are separate from the `tile_for_point` ruby/C function
which is part of the quad_tile gem. This function is still used when
creating and updating database records.

Fixes #3110.
2022-12-07 17:22:50 +00:00
Tom Hughes
12c1d5e6c0 Merge remote-tracking branch 'upstream/pull/3126' 2022-12-03 10:59:14 +00:00
Andy Allan
293ce4880e Standardise on openstreetmap-website instead of rails port
Fixes #3796
2022-11-16 12:16:45 +00:00
lectrician1
d602c7d0af
Clarify Windows installation bad + alternatives
State some ruby gems might not be supported and Docker is easiest solution.
2022-09-16 16:52:07 -04:00
Andy Allan
770b367a13 Add vips to brew install list 2022-03-09 18:16:51 +00:00
Andy Allan
9809750401 Remove imagemagick from dependencies 2022-03-09 17:18:43 +00:00
Tom Hughes
ddb140f387 Switch to using vips for image processing 2022-03-02 19:44:56 +00:00
Tom Hughes
dc76ddcbde Merge remote-tracking branch 'upstream/pull/3453' 2022-02-12 10:45:16 +00:00
Brian Kelly
d2977ee2b8 Adds advancedcomp to the list of macOS Homebrew dependencies 2022-02-11 18:17:13 -06:00
Brian Kelly
0897ce0d7c Updates macOS geckodriver installation command 2022-02-11 18:05:20 -06:00
Tom Hughes
81c3ebe03c Remove xid_to_int4 postgres function
Fixes #3288
2021-08-06 00:15:40 +01:00
Tom Hughes
3b32753141 Merge remote-tracking branch 'upstream/pull/3213' 2021-06-04 21:10:32 +01:00
Robbendebiene
bc12774c21
Added missing dependency for fedora install 2021-06-04 16:48:33 +02:00
Robbendebiene
ff877321e7
fixed nodejs package name for fedora 2021-06-04 16:29:08 +02:00
Andy Allan
4c785792fb Switch to using 'rails test:all' in documentation and CI
Fixes #3116.

This allows us to drop our custom patch for running system tests,
as well as opening up all the usual rails test goodies like running
individual files or directories.
2021-05-19 13:39:37 +01:00
Andy Allan
6c5c36deac Automatically enable the btree_gist extension
This simplifies the install instructions. Loading from structure.sql is already handled.
2021-03-10 18:24:36 +00:00
Andy Allan
86dbcb55f2
Merge pull request #2409 from jalessio/docker-compose-take2
Add Docker Compose Support for Development Environment
2021-02-03 18:07:29 +00:00
mmd-osm
4e6d729529 Remove /api/0.6/changes endpoint
Also removes sql functions which are only used by this endpoint
2021-02-03 14:06:34 +00:00
Michal Migurski
c936063876 Update INSTALL.md to restore original graf
This reverts commit 20dbf8946351b71fbb4cda69ebdacb1dda2876a6.
2021-01-28 12:03:58 -08:00
Jamie Alessio
6bcd2144a7 Update INSTALL.md to reference Docker as an option 2021-01-28 12:03:58 -08:00
Andy Allan
536c62175c Avoid recommending installation of the Ubuntu bundler package
Due to a problem with namespacing and vendoring, the Ubuntu package
leads to namespace conflicts with Thor 1+

Fixes #3013
2021-01-21 11:29:29 +00:00
Tom Hughes
6e55d4c70d Add yarn to Ubuntu install instructions 2020-11-10 09:39:19 +00:00
nlaratta
192a52d55a Changed Ubuntu 18.04 to 20.04 and Ruby 2.5 to 2.7
Fixes #2909
Closes #2922
2020-10-28 18:16:40 +00:00
Tom Hughes
8773ec6e57 Switch to using selenium for system tests 2020-04-22 13:51:37 +01:00
Boubacar
5e925cc720 Fix macosx-bundle-config link typo
Removed an extra ')' that caused the last link for macosx-bundle-config to render incorrectly.
2020-02-17 11:15:38 +00:00
Andreas Hubel
f25af7ae11
Improve macOS install notes 2020-02-17 10:21:57 +01:00
Boubacar
f54642381b
Fix macosx-bundle-config link typo
Removed an extra ')' that caused the last link for macosx-bundle-config to render incorrectly.
2020-02-16 17:45:43 -05:00
Matt Amos
afe679349f Merge remote-tracking branch 'openstreetmap/master' into mac-os-x-install 2019-10-21 14:22:59 +01:00
Matt Amos
5895ae62af Add section on using rbenv, separate from main installation instructions. 2019-10-21 14:18:25 +01:00
Tom Hughes
9508368d37 Merge remote-tracking branch 'upstream/pull/2383' 2019-10-20 19:13:30 +01:00
Matt Amos
cc101f582d Fix installation instructions for Mac OS X
The installation of `libxml-ruby` was broken because it was picking up the system version of the libxml2 library. By setting a `bundler` config item, it's possible to point it to the right place.

Also updated the instructions for `phantomjs`, which Homebrew has moved to a cask (and is now not officially supported), and added some of the extra command line tools that are used (`pngcrush`, `optipng`, etc...)
2019-10-18 16:25:30 +01:00
Matt Amos
2423d86914 Make documentation clearer and shorter by deferring complicated shared-library SQL explanations to 'advanced' documentation. Also mention in the CONFIGURING.md. 2019-10-09 12:13:27 +01:00
Matt Amos
ced8ac86ab Remove need for shared library PostgreSQL functions
This repo contains code for three functions to be loaded into PostgreSQL as a shared library:

1. `maptile_for_point`, which is used only by the `/changes` API call. This API call is little-used and IMHO should be deprecated and removed. However, even now it's hardly on the hot path for most development activities.
2. `tile_for_point`, which is used only in migrations. At this point, it seems unlikely that anyone will be doing a migration on existing data which would call this function (most developers will be running migrations on an empty database, to set it up).
3. `xid_to_int4`, which is only used for replication using Osmosis and isn't used in the Rails code at all. Hopefully this will be replaced Real Soon Now, but until then it's a quite advanced feature that most developers won't need.

Therefore, this patch proposes to replace the above three shared library functions with SQL implementations of the first two. These are _much_ slower - by a factor of about 30x, however this makes no difference when they're run on a completely empty database. In return, we're able to drop a dependency on the PostgreSQL server development package, and clean a few lines out of the installation instructions.

It's still possible to make and install the shared library functions, and I've included instructions about how to do that - although it shouldn't be necessary for the vast majority of `openstreetmap-website` developers.
2019-10-04 13:25:00 +01:00
Tobias
be9db818b2
Add reference to settings-file in installation.md
This way new developers will not have to look up this error themselves.
2019-09-23 16:45:25 +02:00
Tom Hughes
2a9346adb0 Make sure phantomjs is installed 2019-08-07 17:29:26 +01:00
Tom Hughes
c162c065c6 Merge remote-tracking branch 'upstream/pull/2296' 2019-07-15 08:19:30 +01:00
Mateusz Konieczny
d63beb8080 make link in documentation clickable 2019-07-11 21:11:25 +02:00
Tom Hughes
ba627420a3 Add support for Active Storage attachments 2019-07-09 19:17:29 +01:00
Grant Slater
f39ea70083 Ubuntu 18.04 is now required. Add apt-get update 2019-07-03 20:47:07 +01:00