Skip to content
This repository was archived by the owner on Apr 28, 2021. It is now read-only.

test_amir #3

Open
wants to merge 74 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
ddd9173
Update README.md
Superfresh Dec 27, 2016
8211a6b
Create script.sh
amir-codefresh Feb 6, 2018
1886271
Update script.sh
amir-codefresh Feb 6, 2018
750f729
Update script.sh
amir-codefresh Feb 6, 2018
17c7ef6
test
amir-codefresh Feb 21, 2018
d82d423
test
amir-codefresh Mar 1, 2018
1504862
Merge branch 'master' of https://github.com/amir-codefresh/demochat
amir-codefresh Mar 1, 2018
b9eb7cb
t
amir-codefresh Mar 2, 2018
649091a
r
amir-codefresh Mar 2, 2018
215b898
test
amir-codefresh Mar 2, 2018
e6e1bca
Merge branch 'master' into amir
amir-codefresh Apr 22, 2018
753dbed
Merge pull request #5 from amir-codefresh/amir
amir-codefresh Apr 22, 2018
b435e48
Merge pull request #6 from amir-codefresh/testbranch
amir-codefresh Apr 22, 2018
7588752
Update README.md
amir-codefresh Apr 22, 2018
1e256a0
Merge pull request #9 from amir-codefresh/amir-codefresh-patch-1
amir-codefresh Apr 22, 2018
0fcabdf
Update README.md
amir-codefresh Apr 29, 2018
3b3f3e2
Merge pull request #11 from amir-codefresh/amir-codefresh-patch-3
amir-codefresh Apr 29, 2018
ef22d95
Update README.md
amir-codefresh Apr 29, 2018
005d642
Merge pull request #13 from amir-codefresh/amir-codefresh-patch-5
amir-codefresh Apr 29, 2018
2ced20c
Update README.md
amir-codefresh Apr 29, 2018
7421624
Merge pull request #14 from amir-codefresh/amir-codefresh-patch-6
amir-codefresh Apr 29, 2018
0b54a51
Update README.md
amir-codefresh Apr 29, 2018
79fc7b9
Merge pull request #15 from amir-codefresh/amir-codefresh-patch-7
amir-codefresh Apr 29, 2018
920670c
Update README.md
amir-codefresh Apr 29, 2018
60170ab
Merge pull request #16 from amir-codefresh/amir-codefresh-patch-8
amir-codefresh Apr 29, 2018
1a14c53
Update README.md
amir-codefresh Apr 29, 2018
ccdb8c0
Merge pull request #17 from amir-codefresh/amir-codefresh-patch-9
amir-codefresh Apr 29, 2018
b0c8ab5
Create codefresh-tivix.yaml
amir-codefresh May 10, 2018
d1e0a9b
Update README.md
amir-codefresh Jun 17, 2018
edea3af
test
amir-codefresh Jul 24, 2018
8a4228c
Update compose.yml
amir-codefresh Jul 24, 2018
e7d18d9
Update compose.yml
amir-codefresh Aug 8, 2018
85a9a25
Update compose.yml
amir-codefresh Aug 8, 2018
47ccbfd
Update Dockerfile_prod
amir-codefresh Aug 14, 2018
33c4f71
Update Dockerfile
amir-codefresh Sep 6, 2018
5662545
Update Dockerfile
amir-codefresh Sep 6, 2018
0243192
test1
amir-codefresh Sep 17, 2018
d2d319d
test2
amir-codefresh Sep 17, 2018
b343031
Create dockerfile_test
amir-codefresh Oct 24, 2018
fdb1c72
Merge pull request #18 from amir-codefresh/testaction
amir-codefresh Oct 29, 2018
488c82c
Create Dockerfile1
amir-codefresh Nov 13, 2018
c03dc11
Create Dockerfile2
amir-codefresh Nov 13, 2018
a807807
Update codefresh.yml
amir-codefresh Dec 30, 2018
28eb5da
Update codefresh.yml
amir-codefresh Dec 30, 2018
73979f9
Create spinnaker.json
amir-codefresh Feb 6, 2019
32e5505
Create multistage_Dockerfile
amir-codefresh Feb 25, 2019
8b07a63
Create bad-codefresh.yaml
amir-codefresh Mar 1, 2019
43af2a9
Update README.md
amir-codefresh Mar 20, 2019
de2078a
Update README.md
amir-codefresh Apr 28, 2019
5e3dd3e
Update README.md
amir-codefresh Apr 28, 2019
55363fc
Update README.md
amir-codefresh Apr 28, 2019
71c0761
Create test.yaml
amir-codefresh May 7, 2019
7df399f
Update README.md
amir-codefresh May 16, 2019
67d9cef
Update README.md
amir-codefresh May 28, 2019
93903f7
Update README.md
amir-codefresh Jun 4, 2019
3892fcb
Update README.md
amir-codefresh Jun 4, 2019
ed69464
Update Dockerfile
amir-codefresh Jun 6, 2019
9d914c6
Update README.md
amir-codefresh Jun 16, 2019
be0b6ef
Update README.md
amir-codefresh Jun 16, 2019
6bcc3de
Update README.md
amir-codefresh Jun 16, 2019
b36c599
Update README.md
amir-codefresh Jun 16, 2019
7c7a874
Update README.md
amir-codefresh Jun 16, 2019
a9f021a
Update README.md
amir-codefresh Jun 16, 2019
a83554a
Update README.md
amir-codefresh Jun 16, 2019
15b875b
Update README.md
amir-codefresh Jun 16, 2019
0c3e165
Create pip.yaml
amir-codefresh Jun 18, 2019
372a8bb
Update README.md
amir-codefresh Jun 18, 2019
8065136
Update README.md
amir-codefresh Jun 26, 2019
8989ac1
Update README.md
amir-codefresh Jun 26, 2019
f3ffc68
Update README.md
amir-codefresh Jun 30, 2019
c47198e
Update README.md
amir-codefresh Jun 30, 2019
40f5509
Update README.md
amir-codefresh Jun 30, 2019
dbacb0a
Update README.md
amir-codefresh Jun 30, 2019
6160929
Update README.md
amir-codefresh Jun 30, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
FROM node:0.10-slim

ARG test

RUN echo $test

RUN npm install -g mocha
RUN npm install -g istanbul
RUN npm install -g gulp
RUN pwd

COPY ./package.json /src/package.json
RUN cd /src && npm install
Expand Down
1 change: 1 addition & 0 deletions Dockerfile1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FROM alpine
1 change: 1 addition & 0 deletions Dockerfile2
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FROM alpine
3 changes: 3 additions & 0 deletions Dockerfile_prod
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM node:0.10-slim

ARG DIRNAME=defaultdir
RUN mkdir /home/$DIRNAME

COPY ./package.json /src/package.json
RUN cd /src && npm install
COPY ./ /src
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![Codefresh build status]( https://g-staging.codefresh.io/api/badges/build?branch=master&repoName=demochat&repoOwner=containers101&pipelineName=demochat&accountName=verchol )]( https://g-staging.codefresh.io/repositories/containers101/demochat/builds?filter=trigger:build )

12ssa
![Let's Chat Greylock](http://i.imgur.com/0a3l5VF.png)
![Screenshot](http://i.imgur.com/C4uMD67.png)
A self-hosted chat app for small teams or big Gal by [Security Compass][seccom].
Expand All @@ -8,6 +8,7 @@ A self-hosted chat app for small teams or big Gal by [Security Compass][seccom].
[![Dependency Status](https://david-dm.org/sdelements/lets-chat.svg)](https://david-dm.org/sdelements/lets-chat)
[![devDependency Status](https://david-dm.org/sdelements/lets-chat/dev-status.svg)](https://david-dm.org/sdelements/lets-chat#info=devDependencies)

f

## Features and Stuff

Expand Down
6 changes: 6 additions & 0 deletions bad-codefresh.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: '1.0'
steps:
test:
image: alpine
commands:
- pwd
73 changes: 73 additions & 0 deletions codefresh-tivix.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: pd-backend
labels:
app: pd-backend

spec:
replicas: 1
selector:
matchLabels:
app: pd-backend-container
template:
metadata:
labels:
app: pd-backend-container

spec:
imagePullSecrets:
- name: codefresh-generated-r.cfcr.io-cfcr-staging

containers:
- name: django
image: r.cfcr.io/zoetis/zoetis/petdialog-backend:develop
imagePullPolicy: Always
command: ["bash"]
args: ["-c", "uwsgi --ini /code/petdialog_web/uwsgi.ini"]
ports:
- containerPort: 8000
env:
- name: UWSGI_PORT
value: "8000"
- name: UWSGI_PROCESSES
value: "4"
- name: UWSGI_THREADS_USE
value: "true"
- name: UWSGI_THREADS
value: "2"
- name: UWSGI_THREADS_OFFLOAD
value: "2"
- name: UWSGI_HARAKIRI_COUNT
value: "60"

- name: DJANGO_ALLOWED_HOST
value: 'petdialog.cdi-stage.com'
- name: ENV
value: staging

- name: POSTGRES_USER
value: petdialog3_1
- name: POSTGRES_DB
value: petdialog
- name: POSTGRES_HOST
value: pd-stage-k8s-vpc.cdrzinh1897o.eu-west-1.rds.amazonaws.com

- name: REDIS_URL
value: pd-redis-service

- name: ELASTIC_APM_APP_NAME
value: petdialog-staging-k8s
- name: ELASTIC_APM_SECRET_TOKEN
valueFrom:
secretKeyRef:
name: elastic-apm-secret-token
key: password
- name: ELASTIC_APM_SERVER_URL
value: https://elk.cdi-stage.com:8200

- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: postgres-credentials
key: password
4 changes: 2 additions & 2 deletions codefresh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ steps:

unit_tests:
title: Unit Tests
image: ${{build_step}}
image: ${{build_step}}
fail_fast: false
#working-directory : ${{initial-clone}}
commands:
#- npm install
#- npm install -g gulp
- npm test
- npm test

push_to_registry:
title: Push To Registry
Expand Down
9 changes: 9 additions & 0 deletions compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: '2'
services:
elasticsearch:
image: 'elasticsearch:5.1-alpine'
datasets:
image: 'circleci/postgres:9.6-alpine'
command: ls -la /amir
volumes:
- '/var/lib/docker/volumes/${{CF_VOLUME}}/_data/${{CF_REPO_NAME}}/extras/emotes/:/amir'
5 changes: 5 additions & 0 deletions dockerfile_test
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ARG owner=default
ARG image=default
ARG tag=default

FROM $owner/$image:$tag
9 changes: 9 additions & 0 deletions multistage_Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM alpine AS base
RUN echo hoy
ARG TEST_ARG
RUN echo hi
FROM base AS dependencies
RUN echo hi stage 2
FROM base
COPY --from=dependencies /tmp /tmp2
RUN echo test
Loading