Skip to content

Instantly share code, notes, and snippets.

@adam-phillipps
Last active August 15, 2019 23:26
Show Gist options
  • Save adam-phillipps/6ffc5e4a2062750276bbffd1a4e0c3b0 to your computer and use it in GitHub Desktop.
Save adam-phillipps/6ffc5e4a2062750276bbffd1a4e0c3b0 to your computer and use it in GitHub Desktop.
version: '3.1'
services:
account_adjuster:
# image: .
image: <salesforce-srm-account-adjuster>:latest
build: .
depends_on:
- selenium
command:
- python
- /usr/src/app/activateStudentSrmUser3.py
env_file:
.env
links:
- selenium
environment:
# - LOG_LEVEL=DEBUG
- SELENIUM_HOST=selenium
- SELENIUM_PORT=4444
stdin_open: true
tty: true
selenium:
image: selenium/standalone-firefox:3.141.59-dubnium
stdin_open: true
tty: true
volumes:
- /dev/shm:/dev/shm
FROM python:2
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN chmod 700 ./entrypoint.sh
ENV RESULTS_LOCATION \
SALESFORCE_USERNAME \
SALESFORCE_PASSWORD \
SALESFORCE_SECURITY_TOKEN
ENTRYPOINT ["./entrypoint.sh"]
CMD ["python", "<whatever script>.py"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment