Skip to content

Commit 33b255f

Browse files
committed
[Docker Update] Updated Docs and updating script to properly update GHCR image. Added some data for airframe, needed specs marked with // TODO in the comment
1 parent 1817e24 commit 33b255f

4 files changed

Lines changed: 50 additions & 21 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Generated webpage
22
public/
3-
resources/
3+
resources/
4+
.env

README.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,32 @@ sponsors or officers look like the 404 page.
3737

3838
## Website Deployment
3939

40-
To deploy the website after updating the code, run `./updateGHCR.sh` in the main directory of the website from the machine you edited the code from. Then, run `./deploy.sh -r` from the server machine (at time of writing, Twoninn).
40+
Run `./deploy.sh -r` from the server machine (at time of writing, Twoninn).
41+
42+
## Updating the Website
43+
44+
First run `./updateGHCR.sh` in the main directory of the website from the machine you edited the code from. You will need to have a PAT token for github first.
45+
46+
### Generating a Github PAT Token
47+
48+
1. Navigate to GitHub Settings
49+
- Go to GitHub and log in.
50+
- Click on your profile picture in the top-right corner.
51+
- Select Settings.
52+
2. Open Developer Settings
53+
- Scroll down and click Developer Settings (bottom-left sidebar).
54+
- Click Personal access tokens → Tokens (classic).
55+
- Make sure classic token is selected in the drop down in the middle of the page.
56+
3. Generate a New Token
57+
- Click Generate new token.
58+
- Enter a Note to describe the token's purpose.
59+
- Set an Expiration date (use 90 days please)
60+
4. Select Permissions
61+
- Repo: All
62+
- Workflow
63+
- write:packages
64+
5. Generate and Copy the Token
65+
- Click Generate token.
66+
- Copy that token into the `.env` file in the correct variable.
67+
- Enter your username into the respective environment variable.
68+
- MAKE SURE THAT THE `.env` IS IN THE `.gitignore`

content/systems/kavik/airframe.md

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,28 @@ image: "/images/kavik_wingtip.jpg"
1212
1313
### Dimenions
1414
15-
* Wingspan: 10.1 ft
16-
* Length: 10 ft
17-
* Height: 36 in
18-
* Payload bay: 44 in L x 9 in W x 9 in H
15+
* Wingspan: 9 ft
16+
* Length: 10 ft // TODO
17+
* Height: 8.5 in
18+
* Payload bay: 8.5 in L x 7.57 in W x 5 in H
1919
2020
### Weights
2121
22-
* Empty Weight: 19 lbs
23-
* Max Gross Weight: 45 lbs
24-
* Useful Load: 26 lbs
25-
* Fuel Capacity: 50 oz, 2.37 lbs
26-
* Current RTF (Ready to Fly) Weight: 34 lbs
22+
* All Up-Weight: 42.5 lbs
23+
* Fuel Capacity: 50 oz, 2.37 lbs // TODO
2724
2825
### Performance
2926
30-
* Powerplant: Desert Aircraft DA-50R
3127
* Max Power: 5 BHP
32-
* Loiter Endurance: 60+ minutes
33-
* Cruise Range: 50 nm
34-
* Stall Speed: 21 kias
35-
* Loiter Speed: 37 kias
36-
* Cruise Speed: 55 kias
37-
* Max Speed: 100 kias
38-
* Takeoff Distance over a 50ft obstacle: 250 ft
39-
* Landing Roll: 100 ft
40-
* Max Rate of Climb: 2000 ft/min
28+
* Loiter Endurance: 30 minutes
29+
* Cruise Range: 50 nm // TODO
30+
* Stall Speed: 27.5 kias
31+
* Loiter Speed: 37 kias // TODO
32+
* Cruise Speed: 40 kias
33+
* Max Speed: 100 kias // TODO
34+
* Takeoff Distance over a 50ft obstacle: 250 ft // TODO
35+
* Landing Roll: 100 ft // TODO
36+
* Max Rate of Climb: 2000 ft/min // TODO
37+
* Stability Margin (full payload): 0.33
38+
* Stability Margin (half payload): 0.16
4139
-->

updateGHCR.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/bin/bash
22
source ./.env
3+
echo $GITHUB_TOKEN | docker login ghcr.io -u $GITHUB_USER --password-stdin
34
docker build -t ghcr.io/ncsuarc/website:latest .
45
docker push ghcr.io/ncsuarc/website:latest
6+

0 commit comments

Comments
 (0)