Skip to content

Commit

Permalink
Restructuring and adding first guide text.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethan Jones authored and Ethan Jones committed Apr 14, 2016
1 parent ece5554 commit a19b359
Show file tree
Hide file tree
Showing 45 changed files with 60 additions and 217 deletions.
1 change: 0 additions & 1 deletion .gitignore

This file was deleted.

8 changes: 0 additions & 8 deletions 05.matrix/codeship-services.yml

This file was deleted.

6 changes: 0 additions & 6 deletions 05.matrix/codeship-steps.yml

This file was deleted.

8 changes: 0 additions & 8 deletions 06.matrix-complex/codeship-services.yml

This file was deleted.

13 changes: 0 additions & 13 deletions 06.matrix-complex/codeship-steps.yml

This file was deleted.

4 changes: 0 additions & 4 deletions 07.volumes/Dockerfile

This file was deleted.

14 changes: 0 additions & 14 deletions 07.volumes/codeship-services.yml

This file was deleted.

4 changes: 0 additions & 4 deletions 07.volumes/codeship-steps.yml

This file was deleted.

1 change: 0 additions & 1 deletion 07.volumes/write_artifact.sh

This file was deleted.

1 change: 0 additions & 1 deletion 08.deployment-container/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion 08.deployment-container/Dockerfile

This file was deleted.

5 changes: 0 additions & 5 deletions 08.deployment-container/Dockerfile.app1

This file was deleted.

5 changes: 0 additions & 5 deletions 08.deployment-container/Dockerfile.app2

This file was deleted.

3 changes: 0 additions & 3 deletions 08.deployment-container/Dockerfile.build

This file was deleted.

5 changes: 0 additions & 5 deletions 08.deployment-container/Dockerfile.builder

This file was deleted.

22 changes: 0 additions & 22 deletions 08.deployment-container/codeship-services.yml

This file was deleted.

15 changes: 0 additions & 15 deletions 08.deployment-container/codeship-steps.yml

This file was deleted.

4 changes: 0 additions & 4 deletions 08.deployment-container/write_artifact.sh

This file was deleted.

3 changes: 0 additions & 3 deletions 11.encrypted-aes/codeship-services.yml

This file was deleted.

2 changes: 0 additions & 2 deletions 11.encrypted-aes/codeship-steps.yml

This file was deleted.

1 change: 0 additions & 1 deletion 11.encrypted-aes/codeship.aes

This file was deleted.

3 changes: 0 additions & 3 deletions 11.encrypted-aes/environment

This file was deleted.

1 change: 0 additions & 1 deletion 11.encrypted-aes/environment.encrypted

This file was deleted.

1 change: 0 additions & 1 deletion 11.encrypted-aes/run.txt

This file was deleted.

5 changes: 0 additions & 5 deletions 16.docker_push/Dockerfile

This file was deleted.

8 changes: 0 additions & 8 deletions 16.docker_push/after.sh

This file was deleted.

3 changes: 0 additions & 3 deletions 16.docker_push/before.sh

This file was deleted.

8 changes: 0 additions & 8 deletions 16.docker_push/codeship-services.yml

This file was deleted.

9 changes: 0 additions & 9 deletions 16.docker_push/codeship-steps.yml

This file was deleted.

5 changes: 0 additions & 5 deletions 19.dockercfg-service/Dockerfile

This file was deleted.

5 changes: 0 additions & 5 deletions 19.dockercfg-service/Dockerfile.generator

This file was deleted.

8 changes: 0 additions & 8 deletions 19.dockercfg-service/after.sh

This file was deleted.

3 changes: 0 additions & 3 deletions 19.dockercfg-service/before.sh

This file was deleted.

13 changes: 0 additions & 13 deletions 19.dockercfg-service/codeship-services.yml

This file was deleted.

8 changes: 0 additions & 8 deletions 19.dockercfg-service/codeship-steps.yml

This file was deleted.

11 changes: 0 additions & 11 deletions 19.dockercfg-service/dump_default_dockercfg.sh

This file was deleted.

File renamed without changes.
60 changes: 60 additions & 0 deletions part 1.md
@@ -0,0 +1,60 @@
## getting started

We're going to walk you through using Codeship to build, test and deploy your Docker applications. Codeship uses a new tool called Jet to turn your existing Docker apps and workflows in to a seamless CI/CD process.

The first thing you want to do is install Jet on your local machine. For Mac users, you can do this through Brew and Linux users can curl the Jet binary directly. [You can see more detailed instructions here.](https://codeship.com/documentation/docker/installation/)

## testing jet

Once Jet is installed, we'll want to test it out. Type 'jet version' to print the version number on screen. Next, type 'jet help' to bring up the help options. There's a lot Jet can do - from running CI to encrypting your credentials, so take some time to play around with what you see when you run 'jet help'.

![Screenshot of Jet version and/or help output](/img)

## make a simple ruby script

Now that we have Jet installed, we're gonna take a few minutes and build a simple little "app" so that we have something to play with. This isn't a real app, we're just going to write a little Ruby script and a Dockerfile to use as case studies. We'll expand on them later on.

First, create a file called Check.rb. In that file we're just going to print our Postgres and Redis versions. If you're wondering how we're printing versions of tools we haven't set up - we'll get there.

In Check.rb, just write and save the following code:

`require "redis"
require "pg"

def exit_if_not expected, current
puts "Expected: #{expected}"
puts "Current: #{current}"
exit(1) if expected != current
end

puts "Redis"
redis = Redis.new(host: "redis")
puts "REDIS VERSION: #{redis.info["redis_version"]}"

sleep 4
postgres_username = "postgres"
postgres_password = ""
test = PG.connect("postgres", 5432, "", "", "postgres", postgres_username, postgres_password)
puts test.exec("SELECT version();").first["version"]`

## create your dockerfile

Next we're going to create a Dockerfile. Hopefully you're pretty familiar with Dockerfiles, Docker Compose and the rest of the standard Docker workflows.

If you're not, and you want to spend a little bit of time getting up to speed on Docker, we highly recommend using these resources as a jumping off point.

- link1
- link2
- link3

## define your services / compose

## pick your steps to run

## run locally

## change version

## run locally again

## next: adding tests
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit a19b359

Please sign in to comment.