Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
jmesterh committed Dec 13, 2024
1 parent f6c1a3b commit 009a294
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 64 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/build-deploy-release-multi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
endpoint: builders
platforms: ${{ matrix.platform }}

- name: Authenticate with Google Cloud
Expand Down Expand Up @@ -130,8 +129,6 @@ jobs:

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
version: v0.12.0

- name: Authenticate with Google Cloud
uses: google-github-actions/auth@v2
Expand Down
62 changes: 1 addition & 61 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,61 +1 @@
FROM rocker/r-ver:4.4.1

# DeGAUSS container metadata
ENV degauss_name="geocoder"
ENV degauss_version="3.4.0"
ENV degauss_description="geocodes"
ENV degauss_argument="valid_geocode_score_threshold [default: 0.5]"

# add OCI labels based on environment variables too
LABEL "org.degauss.name"="${degauss_name}"
LABEL "org.degauss.version"="${degauss_version}"
LABEL "org.degauss.description"="${degauss_description}"
LABEL "org.degauss.argument"="${degauss_argument}"

ADD https://geomarker.s3.amazonaws.com/geocoder_2021.db /opt/geocoder.db
# COPY geocoder.db /opt/geocoder.db

RUN apt-get update && apt-get install -y \
libssl-dev \
libssh2-1-dev \
libcurl4-openssl-dev \
libxml2-dev \
make \
sqlite3 \
libsqlite3-dev \
flex \
ruby-full \
bison \
gnupg \
software-properties-common \
pkg-config\
&& apt-get clean

RUN gem install sqlite3 json Text

RUN mkdir /app
WORKDIR /app

COPY Makefile.ruby .
COPY /src ./src
COPY /lib ./lib
COPY /gemspec ./gemspec

RUN make -f Makefile.ruby install \
&& gem install Geocoder-US-2.0.4.gem

WORKDIR /app

# install required version of renv
RUN R --quiet -e "install.packages('remotes', repos = c(CRAN = 'https://packagemanager.posit.co/cran/latest'))"
RUN R --quiet -e "remotes::install_github('rstudio/[email protected]')"

COPY renv.lock .
RUN R --quiet -e "renv::restore(repos = c(CRAN = 'https://packagemanager.posit.co/cran/latest'))"

COPY geocode.rb .
COPY entrypoint.R .

WORKDIR /tmp

ENTRYPOINT ["/app/entrypoint.R"]
FROM scratch

0 comments on commit 009a294

Please sign in to comment.