Container which will run a Slack bot to post daily info about upcoming space launches.
5.7K
This repository contains the code for a script that will post information regarding upcoming space launches to a custom Slack Channel.
What It Does: Post information about upcoming space launches to your Slack Channel
What It Does Not: Fulfill your hopes and dreams (unless your hopes and dreams were to post information about space launches to your Slack Channel)
SLACK_WEBHOOK variableWhen creating the custom webhook for the Slack channel, there are a few options to customize.
It's also possible that you don't have access to add an incoming webhook to your team because of the permissions model. In that case, you would need to know what to send to the admin to get it set up. This is that stuff.
Here are the recommended settings when setting up the Hook:
#space channel, or #rockets:rocket: :rocket:Copy the Webhook URL or have the Admin send that URL to you, you'll need it for the script.
The bot will run and post the details of the next rocket launch, as determined via info from LaunchLibrary
Since this script is fairly simple, it's easy enough to run in a compact docker container, ensuring that the script is offloaded from whatever main host you have.
There is a GitHub action which will build and deploy this container automatically, but if you want to build it locally (i.e. to use a custom cron schedule)
Edit the crontab file to reflect the schedule you want. By default, it will
run at 7am daily. (Be sure to set the TZ env var to your local time, otherwise
UTC will be used)
Build the image
docker build -t slack-launch .
docker run -it --detach --rm --name slack-launch -e TZ="America/New_York" -e SLACK_WEBHOOK='https://hooks.slack.com/services/HOOKURL' slack-launch
Check out the Issues page for a list of potential tasks and features that are on the roadmap to be added. Once you select an issue or feature that you would like to work on, please assign yourself that issue.
Content type
Image
Digest
sha256:e9ac4292f…
Size
23.6 MB
Last updated
9 months ago
docker pull tomswartz07/slack-launch