-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c653c1
commit aced562
Showing
4 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/.bundle/ | ||
/.yardoc | ||
/_yardoc/ | ||
/coverage/ | ||
/doc/ | ||
/pkg/ | ||
/spec/reports/ | ||
/tmp/ | ||
|
||
*.bundle | ||
*.so | ||
*.o | ||
*.a | ||
mkmf.log | ||
|
||
# rspec failure tracking | ||
.rspec_status | ||
|
||
# Added by cargo | ||
/target | ||
|
||
# Built gems | ||
*.gem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
FROM ruby:3.2.3 | ||
WORKDIR /app | ||
|
||
# Install the requirements we need to build the native Rust extensions | ||
RUN apt-get update -qq && \ | ||
apt-get upgrade -y && \ | ||
apt-get install -y libclang-dev | ||
COPY Gemfile /app | ||
|
||
# Package and install the gem | ||
COPY . /app | ||
RUN gem build tzf.gemspec | ||
RUN gem install tzf-*.gem | ||
|
||
# Run a sanity check | ||
WORKDIR /app/docker | ||
RUN bundle install | ||
CMD echo 'Hello, world!' | ||
CMD ruby sanity_check.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
require "bundler/setup" | ||
require "tzf" | ||
|
||
puts TZF::VERSION | ||
puts TZF.tz_name(40.74771675713742, -73.99350390136448) |