Skip to content

Commit

Permalink
#381 installation guide up
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jul 28, 2022
1 parent d456efd commit 5f7ac9a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
16 changes: 4 additions & 12 deletions s3auth-relay/INSTALL.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ OF THE POSSIBILITY OF SUCH DAMAGE.

We're using Amazon EC2.

Create a new EC2 instance., with Ubuntu Server 10, 64 bit.
Create a new EC2 instance., with Ubuntu Server 20.04, 64 bit.

Save hostname to /etc/hostname:

Expand All @@ -39,22 +39,15 @@ Save hostname to /etc/hostname:
Install Java & supplementary tools

sudo apt-get update
sudo apt-get install openjdk-7-jdk mailutils ntp
sudo apt-get upgrade

Install Maven 3

wget http://apache.mirror.versatel.nl/maven/binaries/apache-maven-3.0.4-bin.tar.gz
tar xzf apache-maven-3.0.4-bin.tar.gz
rm -rf apache-maven-3.0.4-bin.tar.gz
sudo apt-get -y upgrade
sudo apt-get -y install openjdk-8-jre-headless maven

Copy src/main/production/pom.xml to /home/ubuntu/pom.xml

Create /home/ubuntu/settings.xml:

<?xml version='1.0'?>
<settings>
<localRepository>/home/ubuntu/m2-repo</localRepository>
<servers>
<server>
<id>repo.s3auth.com</id>
Expand All @@ -69,9 +62,8 @@ Create run.sh in /home/ubuntu:
#!/bin/sh
while true
do
export MAVEN_HOME=/home/ubuntu/apache-maven-3.0.4
export MAVEN_OPTS=-Xmx256m
$MAVEN_HOME/bin/mvn --errors --quiet \
mvn --errors --quiet -Dport=80 \
--update-snapshots --settings /home/ubuntu/settings.xml \
test 2>&1 | logger -p local0.info -t run.sh
done
Expand Down
5 changes: 4 additions & 1 deletion s3auth-relay/src/main/production/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ OF THE POSSIBILITY OF SUCH DAMAGE.
<prerequisites>
<maven>3.0</maven>
</prerequisites>
<properties>
<port>80</port>
</properties>
<repositories>
<repository>
<id>repo.s3auth.com</id>
Expand Down Expand Up @@ -86,7 +89,7 @@ OF THE POSSIBILITY OF SUCH DAMAGE.
<argument>-classpath</argument>
<classpath/>
<argument>com.s3auth.relay.Main</argument>
<argument>-p=80</argument>
<argument>-p=${port}</argument>
<argument>-d</argument>
</arguments>
</configuration>
Expand Down

0 comments on commit 5f7ac9a

Please sign in to comment.