Taskforce.sh connector image for, lite-weight from apline for container installs
This image contains the taskforce.sh connector command in a node apline container.
{An example of running the container. Most Outrigger-based projects use docker-compose, so that kind of example is preferred but a docker run is also very helpful.}
docker run -ti taskforce-connector taskforce -n "localhost" -t <api-key> -h <redis-host> -p <redis-port> --passwd <redis-password>
For all command line options see the taskforce connector repository
Kubernetes deployment example:
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: taskforce-connector
name: taskforce-connector
spec:
selector:
matchLabels:
app: taskforce-connector
template:
metadata:
labels:
app: taskforce-connector
spec:
containers:
- name: taskforce-connector
env:
- name: API_KEY
valueFrom:
secretKeyRef:
name: taskforce-connector
key: api-key
- name: NAME
valueFrom:
secretKeyRef:
name: taskforce-connector
key: name
- name: HOST
valueFrom:
secretKeyRef:
name: taskforce-connector
key: host
- name: PORT
valueFrom:
secretKeyRef:
name: taskforce-connector
key: port
- name: REDIS_PASS
valueFrom:
secretKeyRef:
name: taskforce-connector
key: redis-password
image: quay.io/nomadreservations/taskforce-connector-docker:latest
command: ['taskforce']
args: ["-t", "$(API_KEY)", "-n", "$(NAME)", "-h", "$(HOST)", "-p", "$(PORT)", "--passwd", "$(REDIS_PASS)"]
imagePullPolicy: Always
To use this kubernetes example make sure you first create an appropriate secret for taskforce-connector.