rust 1.94
This commit is contained in:
parent
f4aa6972e1
commit
2654a26b06
3 changed files with 21 additions and 26 deletions
|
|
@ -74,6 +74,7 @@ sudo nano /etc/ssh/sshd_config
|
||||||
```
|
```
|
||||||
|
|
||||||
Set / verify:
|
Set / verify:
|
||||||
|
|
||||||
```
|
```
|
||||||
PasswordAuthentication no
|
PasswordAuthentication no
|
||||||
PermitRootLogin no
|
PermitRootLogin no
|
||||||
|
|
@ -160,7 +161,7 @@ Forward the following ports on your router to the Pi's static IP.
|
||||||
to Let's Encrypt before issuing the HTTPS certificate.
|
to Let's Encrypt before issuing the HTTPS certificate.
|
||||||
|
|
||||||
| External | Internal |
|
| External | Internal |
|
||||||
|---|---|
|
|----------|----------|
|
||||||
| 80/tcp | 80 |
|
| 80/tcp | 80 |
|
||||||
| 443/tcp | 443 |
|
| 443/tcp | 443 |
|
||||||
|
|
||||||
|
|
@ -169,7 +170,7 @@ to Let's Encrypt before issuing the HTTPS certificate.
|
||||||
## 7. Clone the platform
|
## 7. Clone the platform
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/YOUR_USER/Hostityourself.git ~/hiy-platform
|
git clone https://github.com/shautvast/Hostityourself.git ~/hiy-platform
|
||||||
cd ~/hiy-platform
|
cd ~/hiy-platform
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -180,8 +181,8 @@ cd ~/hiy-platform
|
||||||
Copy and edit the environment file:
|
Copy and edit the environment file:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cp infra/.env.example infra/.env # if it doesn't exist, create it
|
cp .env.example .env # if it doesn't exist, create it
|
||||||
nano infra/.env
|
nano .env
|
||||||
```
|
```
|
||||||
|
|
||||||
Minimum required variables:
|
Minimum required variables:
|
||||||
|
|
@ -211,17 +212,11 @@ and that ports 80 and 443 are forwarded to the Pi (see step 6).
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd ~/hiy-platform
|
cd ~/hiy-platform
|
||||||
docker compose --env-file infra/.env up -d --build
|
./infra/start.sh
|
||||||
docker compose logs -f # watch startup
|
|
||||||
```
|
```
|
||||||
|
|
||||||
When ready you should see:
|
|
||||||
|
|
||||||
```
|
Open the dashboard: **https://yourdomain.com**
|
||||||
hiy-server | Listening on http://0.0.0.0:3000
|
|
||||||
```
|
|
||||||
|
|
||||||
Open the dashboard: **https://hiy.yourdomain.com**
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
@ -244,7 +239,7 @@ Open the dashboard: **https://hiy.yourdomain.com**
|
||||||
The build engine picks a strategy automatically:
|
The build engine picks a strategy automatically:
|
||||||
|
|
||||||
| What's in the repo | Strategy |
|
| What's in the repo | Strategy |
|
||||||
|---|---|
|
|---------------------------------------|---------------------------------|
|
||||||
| `Dockerfile` | `docker build` |
|
| `Dockerfile` | `docker build` |
|
||||||
| `package.json` / `yarn.lock` | Cloud Native Buildpack (Node) |
|
| `package.json` / `yarn.lock` | Cloud Native Buildpack (Node) |
|
||||||
| `requirements.txt` / `pyproject.toml` | Cloud Native Buildpack (Python) |
|
| `requirements.txt` / `pyproject.toml` | Cloud Native Buildpack (Python) |
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
# ── Build stage ───────────────────────────────────────────────────────────────
|
# ── Build stage ───────────────────────────────────────────────────────────────
|
||||||
# Run the compiler on the *build* host; cross-compile to target when needed.
|
# Run the compiler on the *build* host; cross-compile to target when needed.
|
||||||
FROM --platform=$BUILDPLATFORM rust:1.86-slim-bookworm AS builder
|
FROM --platform=$BUILDPLATFORM rust:1.94-slim-bookworm AS builder
|
||||||
|
|
||||||
ARG BUILDPLATFORM
|
ARG BUILDPLATFORM
|
||||||
ARG TARGETPLATFORM
|
ARG TARGETPLATFORM
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue