1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-17 17:47:03 +00:00

gcloud: removed

- Dockerized and moved to https://github.com/jhillyerd/demo.inbucket.org
- Merge master changelog entry
This commit is contained in:
James Hillyerd
2018-02-27 21:15:45 -08:00
parent d5aea4d635
commit ffa756d895
4 changed files with 6 additions and 67 deletions

View File

@@ -13,6 +13,11 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Changed
- Reverse message display sort order in the UI; now newest first.
## [1.2.0] - 2017-12-27
### Changed
- No significant code changes from rc2
## [1.2.0-rc2] - 2017-12-15
### Added
@@ -95,6 +100,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
specific message.
[Unreleased]: https://github.com/jhillyerd/inbucket/compare/master...develop
[1.2.0]: https://github.com/jhillyerd/inbucket/compare/1.2.0-rc2...1.2.0
[1.2.0-rc2]: https://github.com/jhillyerd/inbucket/compare/1.2.0-rc1...1.2.0-rc2
[1.2.0-rc1]: https://github.com/jhillyerd/inbucket/compare/1.1.0...1.2.0-rc1
[1.1.0]: https://github.com/jhillyerd/inbucket/compare/1.1.0-rc2...1.1.0

View File

@@ -1,8 +0,0 @@
#!/bin/bash
# create-demo-instance.sh
set -x
gcloud compute instances create inbucket-1 --machine-type=f1-micro \
--image-project=debian-cloud --image-family=debian-9 \
--metadata-from-file=startup-script=debian-startup.sh,greeting=demo-greeting.html \
--tags=http-server --address=inbucket-demo

View File

@@ -1,44 +0,0 @@
#!/bin/bash
# setup.sh
# description: Install Inbucket on Google Cloud debian9 instance
inbucket_rel="1.2.0-rc2"
inbucket_pkg="inbucket_${inbucket_rel}_linux_amd64"
inbucket_url="https://dl.bintray.com/content/jhillyerd/golang/${inbucket_pkg}.tar.gz?direct"
fauxmailer_rel="0.1"
fauxmailer_pkg="fauxmailer_${fauxmailer_rel}_linux_amd64"
fauxmailer_url="https://github.com/jhillyerd/fauxmailer/releases/download/0.1/${fauxmailer_pkg}.tar.gz"
set -eo pipefail
[ $TRACE ] && set -x
# Prerequisites
apt-get --yes update
apt-get --yes install curl libcap2-bin
id inbucket &>/dev/null || useradd -r -m inbucket
# Extract
cd /opt
curl --location "$inbucket_url" | tar xzvf -
ln -s "$inbucket_pkg/" inbucket
# Install
cd /opt/inbucket/etc/ubuntu
install -o inbucket -g inbucket -m 775 -d /var/opt/inbucket
touch /var/log/inbucket.log
chown inbucket: /var/log/inbucket.log
install -o root -g root -m 644 inbucket.logrotate /etc/logrotate.d/inbucket
install -o root -g root -m 644 inbucket.service /lib/systemd/system/inbucket.service
install -o root -g root -m 644 ../unix-sample.conf /etc/opt/inbucket.conf
# Setup
setcap 'cap_net_bind_service=+ep' /opt/inbucket/inbucket
curl -sL -o /opt/inbucket/themes/greeting.html "http://metadata.google.internal/computeMetadata/v1/instance/attributes/greeting" -H "Metadata-Flavor: Google"
systemctl enable inbucket.service
systemctl start inbucket
# Fauxmailer
cd /opt
curl --location "$fauxmailer_url" | tar xzvf -
ln -s "$fauxmailer_pkg/" fauxmailer

View File

@@ -1,15 +0,0 @@
<h2>Welcome to the Inbucket demonstration instance</h2>
<p><em>tl;dr</em> - click <code>Monitor</code> above to get started.</p>
<p>Inbucket is an email testing service; it will accept email for any email
address and make it available to view without a password.</p>
<p>This instance is running on Google Compute Engine, and utilizes
<a href="https://github.com/jhillyerd/fauxmailer">fauxmailer</a> to generate
a stream of fake email. Feel free to poke around, delete mails, or try out
the REST API.</p>
<p>To protect our visitors, this instance does not accept external mail. You
will need to install your own copy of Inbucket to use it in your
environment.</p>