-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile.dev
48 lines (34 loc) · 1.59 KB
/
Dockerfile.dev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Development Dockerfile for WWT - Cisco DevNet DCAUTO Study Resources
FROM python:3.9-slim-buster
LABEL maintainer="Tim Hull <[email protected]>"
WORKDIR /app
# TCP 8000 for MkDocs server
EXPOSE 8000/tcp
# TCP 8888 for JupyterLab Server
EXPOSE 8888/tcp
# Update repositories and install Git
RUN apt-get update && \
apt-get install -y curl gcc git libicu63
# Copy requirements files to Image
COPY requirements/ requirements/
# Install Python packages and Ansible Collections
RUN python -m pip install --upgrade pip && \
python -m pip install -r requirements/requirements-dev.txt && \
ansible-galaxy collection install -r requirements/ansible-galaxy.yml
# Install .NET Core SDK
# https://docs.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual#scripted-install
RUN ./requirements/ucs/dotnet-install.sh -c Current
# Install and configure PowerShell
# https://docs.microsoft.com/en-us/powershell/scripting/install/install-other-linux?view=powershell-7.2#installation-using-a-binary-archive-file
RUN mkdir -p /opt/microsoft/powershell/7 && \
tar zxfv requirements/ucs/powershell-7.2.5-linux-arm64.tar.gz -C /opt/microsoft/powershell/7 && \
chmod +x /opt/microsoft/powershell/7/pwsh && \
ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh
# Configure the USC PowerShell Tool
RUN ./requirements/ucs/ucs-powertool-setup.sh
# Clone the Intersight REST API repository
RUN git clone https://github.com/movinalot/intersight-rest-api \
requirements/ucs/intersight_rest_api
# Run script to launch server services
ENTRYPOINT [ "./requirements/server-launch.sh" ]
CMD [ "/bin/bash" ]