Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In the mysql/mariadb templates, set MYSQL_UNIX_PORT to a hardcoded short path #2523

Merged
merged 22 commits into from
Mar 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
06ac64d
In the mysql/mariadb templates, set MYSQL_UNIX_PORT to a hardcoded short
jefft Feb 17, 2025
2576ef3
Update READMEs to reflect that MYSQL_UNIX_PORT does not need to be ad…
jefft Feb 18, 2025
b4b1758
Update README to specify --password with MySQL, consistent with
jefft Feb 18, 2025
92a3265
Optimize Docker Image Size by Cleaning Nix Store (#2486)
artemklevtsov Feb 20, 2025
5fda898
all: upgrade to Go 1.24 (#2533)
gcurtis Feb 21, 2025
946944c
Migrate devbox to go.jetify.com (#2536)
loreto Feb 24, 2025
2157990
Upgrade dependencies for devbox (#2538)
loreto Feb 25, 2025
189ebfe
[cicd] fix release action (#2540)
mikeland73 Feb 27, 2025
7d1f2ac
[run] Add --all-projects flag (#2543)
mikeland73 Mar 3, 2025
f4c593d
[easy][cicd] Fix testscripts (#2545)
mikeland73 Mar 3, 2025
c6a6859
Clarify license and terms for contributions, reformat markdown (#2546)
loreto Mar 4, 2025
231ce31
Bump rack from 2.2.10 to 2.2.12 in /examples/stacks/rails/blog (#2547)
dependabot[bot] Mar 4, 2025
3271681
Bump drupal/core-recommended from 10.2.3 to 10.2.11 in /examples/stac…
dependabot[bot] Mar 4, 2025
34ad93e
Bump github.com/go-jose/go-jose/v3 from 3.0.3 to 3.0.4 (#2541)
dependabot[bot] Mar 4, 2025
86085ed
Bump django from 4.2.17 to 4.2.18 in /examples/stacks/django (#2513)
dependabot[bot] Mar 4, 2025
f3771ab
[flake] fix vendor hash (#2548)
mikeland73 Mar 4, 2025
f1e3875
[deps] Fix a few more dependabot issues (#2552)
mikeland73 Mar 5, 2025
6025ca8
Disable PreRunE check for Nix when passing no-install flag on update …
burritobill Mar 7, 2025
bc905b6
[deps] Bump docs deps (#2551)
mikeland73 Mar 7, 2025
7ad3de8
Bump django from 4.2.18 to 4.2.20 in /examples/stacks/django (#2553)
dependabot[bot] Mar 7, 2025
ae3632a
Merge branch 'main' into fix-2521
Lagoja Mar 11, 2025
a5f00da
tidy lockfile
Lagoja Mar 11, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions examples/databases/mariadb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## mariadb Notes

1. Start the mariadb server using `devbox services up`
1. Create a database using `"mysql -u root < setup_db.sql"`
1. Create a database using `"mysql --socket-path=$MYSQL_UNIX_PORT --password='' < setup_db.sql"`
1. You can now connect to the database from the command line by running `devbox run connect_db`

## Services
Expand All @@ -22,10 +22,4 @@ Use `devbox services start|stop [service]` to interact with services

To show this information, run `devbox info mariadb`

Note that the `.sock` filepath can only be maximum 100 characters long. You can point to a different path by setting the `MYSQL_UNIX_PORT` env variable in your `devbox.json` as follows:

```
"env": {
"MYSQL_UNIX_PORT": "/<some-other-path>/mysql.sock"
}
```
Note that the `.sock` filepath can only be maximum 100 characters long. You can point to a different path by setting the `MYSQL_UNIX_PORT` env variable in your `devbox.json`.
8 changes: 5 additions & 3 deletions examples/databases/mariadb/devbox.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,17 @@
],
"test_db_setup": [
"mkdir -p /tmp/devbox/mariadb/run",
"export MYSQL_UNIX_PORT=/tmp/devbox/mariadb/run/mysql.sock",
"devbox services up -b",
"sleep 5",
"mysql -u root < setup_db.sql",
"mysql -u root --password='' < setup_db.sql",
"devbox services stop"
]
}
},
"nixpkgs": {
"commit": "f80ac848e3d6f0c12c52758c0f25c10c97ca3b62"
}
},
"env": {
"MYSQL_UNIX_PORT": "/tmp/devbox/mariadb/run/mysql.sock"
}
}
10 changes: 2 additions & 8 deletions examples/databases/mysql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## mysql Notes

1. Start the mysql server using `devbox services up`
1. Create a database using `"mysql -u root < setup_db.sql"`
1. Create a database using `"mysql -u root --password='' < setup_db.sql"`
1. You can now connect to the database from the command line by running `devbox run connect_db`

## Services
Expand All @@ -22,10 +22,4 @@ Use `devbox services start|stop [service]` to interact with services

To show this information, run `devbox info mysql`

Note that the `.sock` filepath can only be maximum 100 characters long. You can point to a different path by setting the `MYSQL_UNIX_PORT` env variable in your `devbox.json` as follows:

```json
"env": {
"MYSQL_UNIX_PORT": "/<some-other-path>/mysql.sock"
}
```
Note that the `.sock` filepath can only be maximum 100 characters long. You can point to a different path by setting the `MYSQL_UNIX_PORT` env variable in your `devbox.json`.
8 changes: 5 additions & 3 deletions examples/databases/mysql/devbox.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@
],
"test_db_setup": [
"mkdir -p /tmp/devbox/mariadb/run",
"export MYSQL_UNIX_PORT=/tmp/devbox/mariadb/run/mysql.sock",
"devbox services up -b",
"sleep 5",
"mysql -u root < setup_db.sql",
"mysql -u root --password='' < setup_db.sql",
"devbox services stop"
]
}
}
},
"env": {
"MYSQL_UNIX_PORT": "/tmp/devbox/mariadb/run/mysql.sock"
}
}
Loading