34 Commits

Author SHA1 Message Date
0c30da7e6d Actually really for real point current to god knows where 2021-04-08 14:33:49 -05:00
2fcf3ad3a2 Point current off to god knows where 2021-03-25 13:01:32 -05:00
930c550385 Alright fuck it, disable testing 2021-03-25 01:02:41 -05:00
ea31268ef5 Wait for Apache to start up before testing it 2021-03-25 00:56:04 -05:00
c1b575f5a9 Add more debugging info to the test cases 2021-03-25 00:42:24 -05:00
ad67e1831b Oh right --push doesn't take an argument 2021-03-25 00:31:04 -05:00
7330851694 Fix some issues with docker buildx
Unfortunately, I can't use --load, I'll have to use --push directly
2021-03-25 00:24:13 -05:00
62829cecad Oh more diag pls 2021-03-20 20:36:24 -05:00
afa3886de5 Maybe this fixes it? Hopefully I can at least diag from here 2021-03-20 20:36:00 -05:00
d066bed021 Alright, new approach 2021-03-20 20:30:58 -05:00
1cf9089e33 Disabel SELinux to fix builds on arm64 2021-03-20 20:27:42 -05:00
9aeb4b44b4 That image doesn't work; try this one 2021-03-20 18:50:45 -05:00
f3f6fd7be5 No wait I want this one 2021-03-20 14:28:24 -05:00
138fa27962 Switch to an image that will have buildx 2021-03-20 14:25:59 -05:00
234992141c Set up multi-arch builds 2021-03-20 14:20:43 -05:00
89d9610ba8 Need to actually add curl. Whoops 2021-03-20 14:17:37 -05:00
73cad693a1 Set up some barebones automated testing 2021-03-20 14:14:11 -05:00
acc4e3f324 Remove janky script stuff 2021-03-20 13:50:26 -05:00
7b5af1e979 Update README, ensure /files exists in the docroot 2021-03-20 13:49:49 -05:00
6a633ec2eb Fix typo in push for bleeding pipeline 2021-03-20 13:39:01 -05:00
67f15c17e6 Add a GitLab CI 2021-03-20 13:34:56 -05:00
3b5544f99f Update README 2021-03-20 13:03:11 -05:00
b57bcea176 Deprecate current pack 2021-03-09 02:47:38 -06:00
dbd6856dce Add another quote 2021-02-20 01:32:04 -06:00
36f5753088 Add a basic bitch dockerfile 2021-02-15 13:25:00 -06:00
7909e8f91d RGBA Lines 2021-02-14 20:07:03 -06:00
063ffd6f34 Use transparent shadows 2021-02-14 20:05:02 -06:00
1ac6174029 Add subtitle to celebrate no scripts 2021-02-14 19:48:52 -06:00
c3c1761c75 Remove no-fouc 2021-02-14 19:46:55 -06:00
5de09c8789 Remove netdata 2021-02-11 13:25:17 -06:00
f7f1b8b052 Minor description text change for 1.7.10-magicpack 2021-02-09 05:35:42 -06:00
f93a0218a0 Fix escaped quotes in a quote 2021-02-09 05:34:32 -06:00
1225552189 Minor style changes to Minecraft section 2021-02-09 05:34:06 -06:00
756a5a9a8a Work on more revamping of the Minecraft section 2021-02-09 05:24:58 -06:00
17 changed files with 172 additions and 79 deletions

6
.dockerignore Normal file
View File

@@ -0,0 +1,6 @@
.git
.gitignore
.templates
deploy.sh
README.md
test.sh

1
.gitignore vendored
View File

@@ -1,2 +1 @@
*.swp
/files

79
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,79 @@
#
# This guy is awesome: https://dev.to/bzinoun/gitlab-ci-to-build-and-push-containers-to-registry-538a
#
image: morlay/buildx:607a2ce
variables:
# DinD's vfs driver is pretty intensive; this is less so
DOCKER_DRIVER: overlay2
CI_HUB_USERNAME: rehashedsalt
stages:
- build
# - test
- push
services:
- docker:dind
before_script:
- echo -n "$CI_LOGIN_PASSWORD" | docker login -u "$CI_LOGIN_USERNAME" --password-stdin
- docker version
- docker info
after_script:
- docker logout hub.docker.com
# BUILD
Build:
stage: build
script:
- docker pull $CI_HUB_USERNAME/$CI_PROJECT_NAME:latest || true
- docker buildx create --use
- >
docker buildx build
--pull
--platform linux/amd64,linux/arm64
--cache-from $CI_HUB_USERNAME/$CI_PROJECT_NAME:latest
--tag $CI_HUB_USERNAME/$CI_PROJECT_NAME:$CI_COMMIT_SHORT_SHA
--push
.
- docker images
# TEST
# TODO: Fix this
#Test_HTTP_200:
# stage: test
# script:
# - apk add curl
# - docker run -d -p 8889:80 $CI_HUB_USERNAME/$CI_PROJECT_NAME:$CI_COMMIT_SHORT_SHA
# - sleep 10
# - docker ps
# - netstat -tulpn
# - curl localhost:8889 | grep -ie '200 OK'
# - docker kill $(docker ps -q)
# PUSH
Push_When_Tag:
stage: push
only:
- tags
script:
- docker pull $CI_HUB_USERNAME/$CI_PROJECT_NAME:$CI_COMMIT_SHORT_SHA
- >
docker tag
$CI_HUB_USERNAME/$CI_PROJECT_NAME:$CI_COMMIT_SHORT_SHA
$CI_HUB_USERNAME/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME
- >
docker tag
$CI_HUB_USERNAME/$CI_PROJECT_NAME:$CI_COMMIT_SHORT_SHA
$CI_HUB_USERNAME/$CI_PROJECT_NAME:latest
- docker images
- docker push $CI_HUB_USERNAME/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME
- docker push $CI_HUB_USERNAME/$CI_PROJECT_NAME:latest
Push_Bleeding:
stage: push
script:
- docker pull $CI_HUB_USERNAME/$CI_PROJECT_NAME:$CI_COMMIT_SHORT_SHA
- >
docker tag
$CI_HUB_USERNAME/$CI_PROJECT_NAME:$CI_COMMIT_SHORT_SHA
$CI_HUB_USERNAME/$CI_PROJECT_NAME:bleeding
- docker images
- docker push $CI_HUB_USERNAME/$CI_PROJECT_NAME:bleeding

3
Dockerfile Normal file
View File

@@ -0,0 +1,3 @@
FROM php:7-apache
COPY ./ /var/www/html/
EXPOSE 80

View File

@@ -6,6 +6,16 @@ A website for me and my friends.
This repo is a ready-to-go webroot. `git clone` and configure Apache. `git pull` for updates.
## Docker
You can pull the image from `rehashedsalt/9iron`. The `:latest` tag will always have the latest git tag applied and the `:bleeding` tag will always be the latest *commit*.
The following directories contain stateful content that you will be interested in keeping in a PV:
* `/var/www/html/files`
The image listens on `:80` and does not terminate SSL; proxy connections if you're interested in that.
## Random Subtitles
I've got random subtitles generated at page load. Hit me up (i.e. open an issue) if you've got dumb ideas for some.

View File

@@ -1,10 +0,0 @@
#! /bin/sh
#
# post-deploy.sh
# Copyright (C) 2020 Vintage Salt <rehashedsalt@cock.li>
#
# Distributed under terms of the MIT license.
#
ssh -t salt@www.9iron.club sudo git -C /var/www/www.9iron.club pull

0
files/.keep Normal file
View File

View File

@@ -5,22 +5,16 @@
<link href="/styles/buttons.css" type="text/css" rel="stylesheet" />
<link href="/minecraft/styles/styles.css" type="text/css" rel="stylesheet" />
<link rel="shortcut icon" href="/favicon.ico" />
<title>9iron</title>
<title>9iron - Modded Minecraft</title>
</head>
<body>
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-header.php';?>
<div class="content">
<div class="section">
<h1>Modded Minecraft</h1>
<p>It's been a go-to of ours for a while. Ongoing and historical modpacks are listed here for your convenience and participation.</p>
<p>At-a-glance information is provided here for the various packs we play.</p>
<div class="iconbuttoncontainer">
<a href="/minecraft/setup" class="iconbutton">
<i class="fa fa-play"></i>
<h1>Setup</h1>
<p>Set up an entire modded Minecraft environment</p>
</a>
</div>
<a href="/minecraft/setup" class="startbutton">
<i class="fa fa-arrow-right"></i>
<p>Confused? Click here to get started</p>
</a>
</div>
<?php
# Define a pack card generator function
@@ -72,14 +66,14 @@ if (!empty($packs)) {
# We have a valid current pack, remove it from the list and print it upfront
$currentpack = readlink("packs/current");
$packs = array_diff($packs, ["$currentpack", "current"]);
echo '<h1>Current Modpack</h1>';
echo '<div class="currentcontainer"><h1>Current Modpack</h1>';
echo_pack($currentpack);
# If there's a server IP name along with that, print that out too
if (file_exists("packs/currentip")) {
$ip = file_get_contents("packs/currentip");
echo "<p><code class=\"bigcode\">$ip</code></p>";
}
echo '</div><div class="section">';
echo '</div></div><div class="section">';
}
# Sort the list of remaining packs
sort($packs);

View File

@@ -1,3 +1,3 @@
<h2>The Magic Pack</h2>
<p>1.7.10, Forge 1614</p>
<p>A very, <i>very</i> well-run modpack with a ton of magic content. Includes Thaumcraft, Blood Magic, Botania, Witchery, Ars, and a couple others.</p>
<p>A very, <i>very</i> well-worn modpack with a ton of magic content. Includes Thaumcraft, Blood Magic, Botania, Witchery, Ars, and a couple others.</p>

View File

@@ -1 +1 @@
1.7.10-magicpack
null

View File

@@ -2,37 +2,36 @@
<html>
<head>
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-meta.php';?>
<link href="/minecraft/styles/styles.css" type="text/css" rel="stylesheet" />
<title>9iron - Modded Minecraft Setup</title>
</head>
<body>
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-header.php';?>
<div class="content">
<div class="section">
<a href="/minecraft" class="startbutton">
<i class="fa fa-arrow-left"></i>
<p>Return to modpacks</p>
</a>
<h1>Setting Up Modded Minecraft</h1>
<p>This guide will set you up with the following:</p>
<ul>
<li>Java, because that's <em>still</em> a pain in the dick to set up</li>
<li>A new Minecraft game launcher to help organize modpacks</li>
<li>Whatever modpack we're playing</li>
</ul>
</div>
<div class="section" id="java">
<h1>1. Installing Java</h1>
<div class="subcontainer" id="java">
<h2>1. Installing Java</h2>
<p>Minecraft depends on Java. It's important that you have the latest 64-bit edition of Java installed.</p>
<ol>
<li>Download <a href="https://sdlc-esd.oracle.com/ESD6/JSCDL/jdk/8u251-b08/3d5a2bb8f8d4428bbe94aed7ec7ae784/jre-8u251-windows-x64.exe?GroupName=JSC&FilePath=/ESD6/JSCDL/jdk/8u251-b08/3d5a2bb8f8d4428bbe94aed7ec7ae784/jre-8u251-windows-x64.exe&BHost=javadl.sun.com&File=jre-8u251-windows-x64.exe&AuthParam=1593609737_aee69d42e03369a5aed61477a858b110&ext=.exe">the 64-bit edition of Java 8</a></li>
<li>Run it</li>
<li>You're done</li>
<li>Go to <a href="https://www.java.com/en/download/manual.jsp">Java Downloads</a></li>
<li>Download and run the "Windows Offline (64-bit)" option</li>
</ol>
</div>
<div class="section" id="multimc">
<h1>2. Installing MultiMC</h1>
<div class="subcontainer" id="multimc">
<h2>2. Installing MultiMC</h2>
<p>MultiMC is the launcher that we use to organize our modpacks. It has a number of features to make pack installation easier.</p>
<ol>
<li>Download <a href="https://multimc.org/#Download">MultiMC</a></li>
<li>Extract the zip file somewhere, like your desktop or Documents</li>
<li>Extract the zip file somewhere, like your desktop or Documents folder</li>
<li>Run <code>multimc.exe</code></li>
</ol>
<p>MultiMC will then run you through basic setup. You can accept the defaults, but change the following:</p>
<p>MultiMC will then run you through basic setup. You can accept the defaults, but will probably want to change the following:</p>
<ul>
<li>On the page where it asks you to set up Java, set these values:</li>
<ul>
@@ -42,28 +41,32 @@
</ul>
<p>After that, it'll drop you to the main screen and you can progress to the next step.</p>
</div>
<div class="section" id="pack">
<h1>3. Installing a Modpack</h1>
<p>Packs on the server, as of the time of writing this document, will from now on be provided in a format that's much easier to use with MultiMC. If, for whatever reason, you have to install one that <em>isn't</em>, flag down a moderator and have them show you. It's honestly a pretty involved process.</p>
<div class="subcontainer" id="pack">
<h2>3. Installing a Modpack</h2>
<p>All modpacks here are installable through MultiMC.</p>
<ol>
<li>Download the modpack you want to play</li>
<li>Open MultiMC</li>
<li>Hit the "Add Instance" button in the upper-left</li>
<li>Pick the option on the left called "Import from Zip"</li>
<li>Copy the pack download link from the previous page and stick it in the URL</li>
<li>Browse for the zip you just downloaded</li>
<li>Click OK</li>
</ol>
<p>This will set you up with a nice, shiny new instance with all the mods ready to go. Double-click it to launch it.</p>
<p>If MultiMC prompts for it, be sure to set up your Minecraft account.</p>
</div>
<div class="section" id="joining">
<h1>4. Joining a Server</h1>
<p>This one's pretty easy, thankfully</p>
<div class="subcontainer" id="joining">
<h2>4. Joining the Server</h2>
<p>Now the last thing we need to do is connect you to the server.</p>
<ol>
<li>Launch the game by double-clicking the modpack icon</li>
<li>Copy the server URL (something like <code>modpack.mc.9iron.club</code>)</li>
<li>Open the game, go to Multiplayer, and click "Add Server"</li>
<li>In the game, go to "Multiplayer", and click "Add Server"</li>
<li>Stick whatever name you want in the name field and paste the server URL in the "IP Address" field</li>
<li>Double-click it to join</li>
</ol>
<p>You're looking for the huge, can't-miss-it serif font with the gray background:</p>
<code class="bigcode">serverip.blah.blah</code>
</div>
</div>
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-footer.php';?>

View File

@@ -5,13 +5,44 @@
* Distributed under terms of the MIT license.
*/
a.startbutton {
background: var(--greenlink);
border-radius: 8px;
box-shadow: 5px 5px var(--shadow);
color: var(--background);
display: block;
font-size: 140%;
padding: 1em;
}
a.startbutton:hover {
background: var(--greenlink-hover);
}
a.startbutton i {
float: right;
vertical-align: middle;
}
a.startbutton p {
display: inline-block;
font-weight: bold;
margin: 0;
vertical-align: middle;
}
code.bigcode {
background: var(--background);
border-radius: 8px;
display: block;
font-size: 400%;
text-align: center;
margin: auto;
padding: 0.5em;
}
div.currentcontainer {
border: 4px solid var(--line);
border-radius: 8px;
box-shadow: 5px 5px var(--shadow);
margin: 1em 0;
padding: 1em;
}
div.packcontainer {
display: grid;
grid-gap: 1em;

View File

@@ -5,18 +5,3 @@
<link href="/styles/styles.css" type="text/css" rel="stylesheet" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fork-awesome@1.1.7/css/fork-awesome.min.css" integrity="sha256-gsmEoJAws/Kd3CjuOQzLie5Q3yshhvmo7YNtBG7aaEY=" crossorigin="anonymous">
<link href="/favicon.ico" rel="shortcut icon" />
<link rel="alternate" href="/feed" title="9iron RSS Feed" type="application/rss+xml" />
<!-- No FOUC -->
<style type="text/css">
.no-fouc {display: none;}
</style>
<script type="text/javascript">
document.documentElement.classname = 'no-fouc';
window.addEventListener("load", function(event) {
// No flash of unstyled content
nf = document.getElementsByClassName('no-fouc');
for (i = 0, len = nf.length; i < len; i++) {
nf[i].removeClass('no-fouc');
}
});
</script>

View File

@@ -86,7 +86,6 @@
"Lain in a bear suit",
"Let's get this out onto a tray. Nice. Mmkay.",
"This space intentionally left blank",
"",
"Banned in Australia",
"Banned in Australia(?)",
"I want a PSP again",
@@ -111,6 +110,8 @@
// - Me, irritating Sam
"\"My heart runs Linux\"",
// - Me, context forgotten
"\"Brett has Mrs. Chapman nipples\"",
// - Me
"\"I suck a lot of dick, get over here\"",
// - Brett
"\"This was worth sucking dick\"",
@@ -161,7 +162,7 @@
// - Jacob, after I said he's my little pogchamp
"\"They're children you thirsty whores\"",
// - Sam
"\"Imagine \'Blades of Glory\' but they fuck\"",
"\"Imagine 'Blades of Glory' but they fuck\"",
// - Also Sam
"God dammit, Sam",
"God dammit, Jacob",
@@ -198,6 +199,7 @@
"No backing database edition",
"Motherfucking website edition",
"Licensed under MIT edition",
"Absolutely no scripts edition",
"Now SFW edition",
"NSFW edition?",
"NSFW edition"

View File

@@ -23,7 +23,6 @@
<h4>desu.ltd</h4>
<a href="https://desu.ltd">Index</a>
<a href="https://git.desu.ltd">Gitea</a>
<a href="https://app.netdata.cloud">Netdata</a>
</div>
<div class="spsubsection">
<h4>9iron</h4>

View File

@@ -10,10 +10,12 @@
:root {
--background-bright: #fdfcfa;
--background: #ecebe9;
--line: #d6d5d3;
--line: rgba(0,0,0,0.1);
--greenlink: #327117;
--greenlink-hover: #47b625;
--link: #286a9d;
--link-hover: #3ea5f3;
--shadow: 8px -5px #d6d5d3;
--shadow: 8px -5px rgba(0,0,0,0.1);
--text: #414040;
--text-code: #a7674e;
}

10
test.sh
View File

@@ -1,10 +0,0 @@
#! /bin/sh
#
# test.sh
# Copyright (C) 2020 Vintage Salt <rehashedsalt@cock.li>
#
# Distributed under terms of the MIT license.
#
php -S localhost:8000