forked from acervos/sentry-rpm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
23 lines (17 loc) · 783 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
DOCKER_IMAGE?="davey/sentry-rpm"
DEFAULT: build
docker:
docker pull centos:centos7
docker build -t $(DOCKER_IMAGE) .
docker-private:
docker pull centos:centos7
docker build -t $(DOCKER_IMAGE) .
docker push $(DOCKER_IMAGE)
deps:
docker pull $(DOCKER_IMAGE)
mkdir -p src/www/sentry
docker run -v $(shell pwd)/src:/app --rm=true sentry-ubuntu sh -c "virtualenv /www/sentry --no-site-packages && source /www/sentry/bin/activate && pip install sentry supervisor https://github.com/getsentry/sentry-auth-github/archive/master.zip https://github.com/getsentry/sentry-slack/archive/master.zip && cp -r /www/sentry/* /app/"
source:
chmod -R -x+X $(shell pwd)/src/
tar --exclude ".svn" --exclude ".*.sw?" --exclude "*.py[co]" -czf SOURCES/sentry.tar.gz src/
build: deps source