Sha256: 82ab2288c917bb79475f18acb80ae45a7a1ea0c7d692844a1300de3b153feebc

Contents?: true

Size: 1.39 KB

Versions: 8

Compression:

Stored size: 1.39 KB

Contents

# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.191.1/containers/ruby/.devcontainer/base.Dockerfile

# [Choice] Ruby version: 3, 3.0, 2, 2.7, 2.6
ARG VARIANT="3"
FROM mcr.microsoft.com/devcontainers/ruby:${VARIANT}

# TinyTDS
RUN apt-get -y install libc6-dev \
    && wget http://www.freetds.org/files/stable/freetds-1.1.32.tar.gz \
    && tar -xzf freetds-1.1.32.tar.gz \
    && cd freetds-1.1.32 \
    && ./configure --prefix=/usr/local --with-tdsver=7.3 \
    && make \
    && make install

# Install the SQL Server command-line tools
RUN curl https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc \
    && curl https://packages.microsoft.com/config/ubuntu/22.04/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list \
    && apt-get update \
    && ACCEPT_EULA=Y apt-get install -y mssql-tools18 unixodbc-dev \
    && echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bashrc \
    && echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> /root/.bashrc

# Add the SQL Server main Gemfile and install the gems.
RUN mkdir -p /tmp/activerecord-sqlserver-adapter
COPY Gemfile VERSION activerecord-sqlserver-adapter.gemspec /tmp/activerecord-sqlserver-adapter/
RUN cd /tmp/activerecord-sqlserver-adapter \
    && bundle install \
    && rm -rf /tmp/activerecord-sqlserver-adapter
RUN chown -R vscode:vscode /usr/local/rvm

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
activerecord-sqlserver-adapter-7.1.9 .devcontainer/Dockerfile
activerecord-sqlserver-adapter-7.1.8 .devcontainer/Dockerfile
activerecord-sqlserver-adapter-7.1.7 .devcontainer/Dockerfile
activerecord-sqlserver-adapter-7.1.6 .devcontainer/Dockerfile
activerecord-sqlserver-adapter-7.1.5 .devcontainer/Dockerfile
activerecord-sqlserver-adapter-7.1.4 .devcontainer/Dockerfile
activerecord-sqlserver-adapter-7.1.3 .devcontainer/Dockerfile
activerecord-sqlserver-adapter-7.1.2 .devcontainer/Dockerfile