Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Pulsar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NDIP
Pulsar
Commits
394bd529
Commit
394bd529
authored
6 years ago
by
Nuwan Goonasekera
Browse files
Options
Downloads
Patches
Plain Diff
Added dockerfile for pulsar
parent
ccebb156
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+44
-0
44 additions, 0 deletions
Dockerfile
with
44 additions
and
0 deletions
Dockerfile
0 → 100644
+
44
−
0
View file @
394bd529
FROM
python:2.7-alpine
ENV
PYTHONUNBUFFERED 1
ENV
DEBIAN_FRONTEND noninteractive
ADD
./requirements.txt /pulsar/
RUN
apk update
\
# psycopg2 dependencies
&& apk add --no-cache --virtual build-deps gcc python-dev musl-dev \
# CFFI dependencies
&& apk --no-cache add libffi-dev py-cffi \
&& apk --no-cache add make linux-headers \
\
# Install python requirements
&& pip install --no-cache-dir -r /pulsar/requirements.txt \
\
# Remove build deps
&& apk del build-deps \
&& rm /var/cache/apk/*
# Create pulsar user environment
RUN
adduser
-D
-g
''
pulsar
\
&&
mkdir
-p
/pulsar
# Set working directory to /pulsar/
WORKDIR
/pulsar/
# Add files to /pulsar/
ADD
. /pulsar
# Change ownership to pulsar
RUN
python setup.py
install
\
&&
pulsar-config
--auto_conda
--host
0.0.0.0
\
&&
chown
-R
pulsar:pulsar /pulsar
\
&&
chmod
+x /usr/local/bin/pulsar
# Switch to new, lower-privilege user
USER
pulsar
# gunicorn will listen on this port
EXPOSE
8913
CMD
sh /usr/local/bin/pulsar
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment