/** * Map a resource (file or directory) on the classpath to a path inside the container. * This will only work if you are running your tests outside a Docker container. * * @param resourcePath path to the resource on the classpath (relative to the classpath root; should not start with a leading slash) * @param containerPath path this should be mapped to inside the container * @param mode access mode for the file * @return this */ default SELF withClasspathResourceMapping(final String resourcePath, final String containerPath, final BindMode mode) { withClasspathResourceMapping(resourcePath, containerPath, mode, SelinuxContext.NONE); return self(); }
/** * Map a resource (file or directory) on the classpath to a path inside the container. * This will only work if you are running your tests outside a Docker container. * * @param resourcePath path to the resource on the classpath (relative to the classpath root; should not start with a leading slash) * @param containerPath path this should be mapped to inside the container * @param mode access mode for the file * @return this */ default SELF withClasspathResourceMapping(final String resourcePath, final String containerPath, final BindMode mode) { withClasspathResourceMapping(resourcePath, containerPath, mode, SelinuxContext.NONE); return self(); }