* Advantage: Can run all Ceph tests
* Disadvantage: Requires lab access
+In both cases, the teuthology container will be built with code from the repository clone that's currently in use.
+
## Prerequisites
### Installing and Running Docker
## Running Tests
-If you want the teuthology container to use a different teuthology branch:
-```bash
-export TEUTHOLOGY_BRANCH=my-branch
-```
-
When you are ready to run tests:
```bash
./start.sh
#!/bin/bash
set -e
-pushd teuthology
-if [ -z "$TEUTHOLOGY_BRANCH" -a -n "$GITHUB_HEAD_REF" ]; then
- TEUTHOLOGY_BRANCH=${GITHUB_HEAD_REF}
-fi
-if [ ! -d ./teuthology ]; then
- git clone \
- --depth 1 \
- -b ${TEUTHOLOGY_BRANCH:-$(git branch --show-current)} \
- https://github.com/ceph/teuthology.git
-fi
-popd
if [ -n "$ANSIBLE_INVENTORY_REPO" ]; then
basename=$(basename $ANSIBLE_INVENTORY_REPO | cut -d. -f1)
if [ ! -d "$basename" ]; then
lsb-release && \
apt-get clean all
WORKDIR /teuthology
-COPY teuthology /teuthology
+COPY . /teuthology
RUN \
cd /teuthology && \
mkdir ../archive_dir && \
mkdir log && \
chmod +x /teuthology/bootstrap && \
- ./bootstrap
-COPY containerized_node.yaml /teuthology
-COPY .teuthology.yaml /root
+ VENV=$VENV ./bootstrap
+COPY docs/docker-compose/teuthology/containerized_node.yaml /teuthology
+COPY docs/docker-compose/teuthology/.teuthology.yaml /root
RUN \
mkdir $HOME/.ssh && \
touch $HOME/.ssh/${SSH_PRIVKEY_FILE} && \
chmod 600 $HOME/.ssh/${SSH_PRIVKEY_FILE} && \
echo "StrictHostKeyChecking=no" > $HOME/.ssh/config && \
echo "UserKnownHostsFile=/dev/null" >> $HOME/.ssh/config
-COPY teuthology.sh /
+COPY docs/docker-compose/teuthology/teuthology.sh /
RUN mkdir -p /etc/ansible
-COPY ansible_inventory/hosts ansible_inventory/secrets /etc/ansible/
+COPY docs/docker-compose/teuthology/ansible_inventory/hosts /etc/ansible/
+COPY docs/docker-compose/teuthology/ansible_inventory/secrets /etc/ansible/
ENTRYPOINT /teuthology.sh
\ No newline at end of file