1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-20 18:18:51 +03:00
mal/impls/plsql/Dockerfile
Joel Martin 8a19f60386 Move implementations into impls/ dir
- Reorder README to have implementation list after "learning tool"
  bullet.

- This also moves tests/ and libs/ into impls. It would be preferrable
  to have these directories at the top level.  However, this causes
  difficulties with the wasm implementations which need pre-open
  directories and have trouble with paths starting with "../../". So
  in lieu of that, symlink those directories to the top-level.

- Move the run_argv_test.sh script into the tests directory for
  general hygiene.
2020-02-10 23:50:16 -06:00

35 lines
1023 B
Docker

FROM wnameless/oracle-xe-11g
RUN apt-get -y update
RUN apt-get -y install make cpp python
RUN apt-get -y install rlwrap
ENV ORACLE_HOME /u01/app/oracle/product/11.2.0/xe
ENV PATH ${ORACLE_HOME}/bin:${PATH}
ENV ORACLE_SID=XE
# Enable use of DMBS_LOCK.sleep and make sure there are no password
# expiry messages that may interfere with communication.
RUN /usr/sbin/startup.sh && \
echo "GRANT EXECUTE ON DBMS_LOCK TO system;" | sqlplus -S sys/oracle AS sysdba && \
echo "ALTER PROFILE default LIMIT PASSWORD_LIFE_TIME UNLIMITED;" | sqlplus -S system/oracle && \
echo "ALTER USER system IDENTIFIED BY oracle ACCOUNT UNLOCK;" | sqlplus -S system/oracle
WORKDIR /mal
# Add oracle user
RUN usermod -a -G sudo oracle
# Travis runs as user ID 1001 so add that user
RUN useradd -ou 1001 -m -s /bin/bash -G sudo travis
# Enable oracle and travis users to sudo for oracle startup
RUN echo "%sudo ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers
ADD entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD []