[CI] Use a custom firesim docker image
This commit is contained in:
parent
17df3c5fd4
commit
2abe4a8ca5
|
@ -0,0 +1,10 @@
|
|||
# Docker images hosted at firesim/firesim-ci
|
||||
FROM centos:centos7.6.1810
|
||||
|
||||
RUN yum -y install sudo epel-release
|
||||
# aws fpga dev ami comes with this: pip2
|
||||
RUN yum -y install python-pip
|
||||
|
||||
RUN adduser centos
|
||||
RUN usermod -aG wheel centos
|
||||
RUN echo "centos ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
|
|
@ -1,12 +1,13 @@
|
|||
# Use the latest 2.1 version of CircleCI pipeline process engine. See: https://circleci.com/docs/2.0/configuration-reference
|
||||
version: 2.1
|
||||
executors:
|
||||
main-env:
|
||||
docker:
|
||||
- image: centos:centos7.6.1810
|
||||
environment:
|
||||
JVM_MEMORY: 2200m # Customize the JVM maximum heap limit
|
||||
LANG: en_US.UTF-8 # required by sbt when it sees boost directories
|
||||
main-env:
|
||||
docker:
|
||||
- image: firesim/firesim-ci:wip
|
||||
user: "centos"
|
||||
environment:
|
||||
JVM_MEMORY: 2200m # Customize the JVM maximum heap limit
|
||||
LANG: en_US.UTF-8 # required by sbt when it sees boost directories
|
||||
|
||||
commands:
|
||||
dockerprep:
|
||||
|
@ -15,7 +16,7 @@ commands:
|
|||
- checkout
|
||||
- run:
|
||||
command: |
|
||||
.circleci/dockerprep.sh
|
||||
sudo .circleci/dockerprep.sh
|
||||
|
||||
machinelaunchscript:
|
||||
description: "Run firesim's machine launch script"
|
||||
|
|
|
@ -2,22 +2,13 @@
|
|||
|
||||
set -e
|
||||
|
||||
pwd
|
||||
# expect firesim to be checked out for prep scripts.
|
||||
ls -la /
|
||||
|
||||
ls -la /root/
|
||||
ls -la /home/centos/
|
||||
|
||||
ls -la /root/project/
|
||||
|
||||
yum -y install sudo epel-release
|
||||
yum -y install python-pip # aws fpga dev ami comes with this: pip2
|
||||
|
||||
# you will be root, so:
|
||||
adduser centos
|
||||
usermod -aG wheel centos
|
||||
|
||||
# let the new acct run sudo without password
|
||||
echo "centos ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
|
||||
ls -la /home/centos/project/
|
||||
|
||||
# fixes to machine launch script to merge later:
|
||||
sudo yum -y install dtc # TODO: replace in machine-launch script, now available in epel
|
||||
|
|
Loading…
Reference in New Issue