Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed Nov 25, 2023
1 parent 1344029 commit 26b14af
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 15 deletions.
9 changes: 0 additions & 9 deletions Dockerfile

This file was deleted.

6 changes: 4 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ services:
- cassandra-data:/var/lib/cassandra
ilios:
build:
context: .
dockerfile: Dockerfile
context: ./dockerfiles
dockerfile: ubuntu.dockerfile
depends_on:
- cassandra
environment:
CASSANDRA_HOST: cassandra
command: bash -c 'sleep infinity'
volumes:
- "./:/opt/ilios"
Expand Down
2 changes: 1 addition & 1 deletion ilios.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
spec.files =
Dir.chdir(__dir__) do
`git ls-files -z`.split("\x0").reject do |f|
(f == __FILE__) || f.match(%r{\A(?:(?:test|example)/|\.(?:git|editorconfig|rubocop.*))})
(f == __FILE__) || f.match(%r{\A(?:(?:test|dockerfiles|example)/|\.(?:git|editorconfig|rubocop.*))})
end
end
spec.require_paths = ['lib']
Expand Down
8 changes: 5 additions & 3 deletions test/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@

$prepared_keyspace_and_table ||= false

CASSANDRA_HOST = ENV['CASSANDRA_HOST'] || '127.0.0.1'

def prepare_keyspace
Ilios::Cassandra.config = {
keyspace: '',
hosts: ['127.0.0.1']
hosts: [CASSANDRA_HOST]
}

session = Ilios::Cassandra.connect
Expand All @@ -27,7 +29,7 @@ def prepare_keyspace
def prepare_table
Ilios::Cassandra.config = {
keyspace: 'ilios',
hosts: ['127.0.0.1']
hosts: [CASSANDRA_HOST]
}

session = Ilios::Cassandra.connect
Expand Down Expand Up @@ -61,5 +63,5 @@ def prepare_table

Ilios::Cassandra.config = {
keyspace: 'ilios',
hosts: ['127.0.0.1']
hosts: [CASSANDRA_HOST]
}

0 comments on commit 26b14af

Please sign in to comment.