This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
MAX_FILENAME_LENGTH = 255 | |
MAX_FILEPATH_LENGTH = 4096 | |
SEP = '/' | |
""" | |
Дана строка, которая является абсолютным путем к файлу или директории в системе Unix. | |
Нужно упростить эту строку до каноничного пути и написать автотесты для своей реализации. Использовать Python + pytest | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM jenkins/jenkins:lts | |
# We need this for correct mapping groups | |
ARG GID=999 | |
USER root | |
ADD https://get.docker.com get-docker.sh | |
RUN sh get-docker.sh && \ | |
usermod -a -G docker jenkins && \ | |
apt-get clean && \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding:utf-8 -*- | |
from __future__ import absolute_import | |
from __future__ import unicode_literals | |
from __future__ import print_function | |
import json | |
import uuid | |
import time | |
import gevent |